Skip to content

Commit

Permalink
Await import fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Zekiah-A authored Mar 3, 2024
1 parent 98d8284 commit af8b147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ if (CHALLENGE) {
const padlockPath = "./padlock/server.ts"
const padlockSource = Bun.file(padlockPath)
if (padlockSource.size !== 0) {
padlock = import(padlockPath)
padlock = await import(padlockPath)
}
else {
throw new Error("Could not enable challenge, challenge module not found")
Expand Down

0 comments on commit af8b147

Please sign in to comment.