Skip to content

Commit

Permalink
fix(formsgsitecreation): fixed rename betrayal by vvscode
Browse files Browse the repository at this point in the history
  • Loading branch information
seaerchin committed Oct 18, 2023
1 parent 3cb2f83 commit 6989fbf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/routes/formsgSiteCreation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,20 +81,20 @@ export class FormsgRouter {
if (!siteName) {
const err = `A site name is required`
await this.sendCreateError(requesterEmail, repoName, submissionId, err)
return cloneRes.sendStatus(200)
return res.sendStatus(200)
}
if (!repoName) {
const err = `A repository name is required`
await this.sendCreateError(requesterEmail, repoName, submissionId, err)
return cloneRes.sendStatus(200)
return res.sendStatus(200)
}
const foundIsomerRequester = await this.usersService.findByEmail(
requesterEmail
)
if (!foundIsomerRequester) {
const err = `Form submitter ${requesterEmail} is not an Isomer user. Register an account for this user and try again.`
await this.sendCreateError(requesterEmail, repoName, submissionId, err)
return cloneRes.sendStatus(200)
return res.sendStatus(200)
}
let foundOwner
if (isEmailLogin) {
Expand All @@ -106,7 +106,7 @@ export class FormsgRouter {
submissionId,
err
)
return cloneRes.sendStatus(200)
return res.sendStatus(200)
}
foundOwner = await this.usersService.findOrCreateByEmail(ownerEmail)
}
Expand Down

0 comments on commit 6989fbf

Please sign in to comment.