Skip to content

Commit

Permalink
fix: remove form deactivation check
Browse files Browse the repository at this point in the history
  • Loading branch information
wanlingt committed May 15, 2023
1 parent 473614a commit a4ac6a2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/app/modules/form/public-form/public-form.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,7 @@ export const handleGetPublicFormSampleSubmission: ControllerHandler<
formId,
}

const formResult = await getFormIfPublic(formId).andThen((form) =>
FormService.checkFormSubmissionLimitAndDeactivateForm(form),
)
const formResult = await getFormIfPublic(formId)
// Early return if form is not public or any error occurred.
if (formResult.isErr()) {
const { error } = formResult
Expand Down

0 comments on commit a4ac6a2

Please sign in to comment.