Skip to content

Commit

Permalink
fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jdinh8124 committed Nov 17, 2023
1 parent db30896 commit 52ba100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/api/handlers/forms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const forms = async (event: APIGatewayEvent) => {
let ABP1;
try {
if (!formVersion) formVersion = getMaxVersion(formId);
const module = await import(`/opt/${formId}/${formVersion}`);
const module = await import(`/opt/${formId}/v${formVersion}.ts`);
console.log(module);
console.log(module.ABP1);
ABP1 = module.ABP1;
Expand Down

0 comments on commit 52ba100

Please sign in to comment.