Skip to content

Commit

Permalink
fix: return after import
Browse files Browse the repository at this point in the history
  • Loading branch information
svedova committed Apr 17, 2023
1 parent d3f0736 commit 08d808a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/callbacks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const handleApi = (
const mod = require(importPath);
return mod.default ? mod.default(req, res) : mod(req, res);
} catch {
import(importPath).then((mod) => {
return import(importPath).then((mod) => {
return mod.default ? mod.default(req, res) : mod(req, res);
});
}
Expand Down

0 comments on commit 08d808a

Please sign in to comment.