Skip to content

Commit 1120385

Browse files
committed
fix
1 parent 532c751 commit 1120385

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/routes/data.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,17 @@ async function ValidateMailboxAsync(email, name) {
5555
throw new HttpError(400, "Invalid name")
5656
}
5757

58-
const existing = await services.mailboxes.GetMailboxByEmail(email)
58+
const mailbox = await services.mailboxes.GetMailboxByEmail(email)
5959

60-
if (existing) {
60+
if (mailbox) {
6161
throw new HttpError(409, "Mailbox already claimed")
6262
}
6363
}
6464

6565
async function EnsureNotMailboxAsync(email) {
6666
ValidateEmail(email)
6767

68-
const existing = await services.mailboxes.GetMailboxByEmail(email)
68+
const mailbox = await services.mailboxes.GetMailboxByEmail(email)
6969

7070
if (mailbox) {
7171
throw new HttpError(409, "Mailbox already claimed")
@@ -75,7 +75,7 @@ async function EnsureNotMailboxAsync(email) {
7575
async function EnsureMailboxAsync(email) {
7676
ValidateEmail(email)
7777

78-
const existing = await services.mailboxes.GetMailboxByEmail(email)
78+
const mailbox = await services.mailboxes.GetMailboxByEmail(email)
7979

8080
if (!mailbox) {
8181
throw new HttpError(404, "Mailbox does not exist")

0 commit comments

Comments
 (0)