From 6989fbf836cc7f976bc2abc319b1132277fa333f Mon Sep 17 00:00:00 2001 From: seaerchin Date: Wed, 18 Oct 2023 15:55:42 +0800 Subject: [PATCH] fix(formsgsitecreation): fixed rename betrayal by vvscode --- src/routes/formsgSiteCreation.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/routes/formsgSiteCreation.ts b/src/routes/formsgSiteCreation.ts index ccd463a1f..5fad518d3 100644 --- a/src/routes/formsgSiteCreation.ts +++ b/src/routes/formsgSiteCreation.ts @@ -81,12 +81,12 @@ 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 @@ -94,7 +94,7 @@ export class FormsgRouter { 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) { @@ -106,7 +106,7 @@ export class FormsgRouter { submissionId, err ) - return cloneRes.sendStatus(200) + return res.sendStatus(200) } foundOwner = await this.usersService.findOrCreateByEmail(ownerEmail) }