fix(backend): 招待コードが使い回せる問題を修正 (#12423)

* (fix) 招待コードを一度のみ利用できるように

* Update Changelog
This commit is contained in:
かっこかり
2023-11-23 19:34:14 +09:00
committed by GitHub
parent 864827f788
commit 4a2a44831b
2 changed files with 2 additions and 1 deletions

View File

@@ -126,7 +126,7 @@ export class SignupApiService {
code: invitationCode,
});
if (ticket == null) {
if (ticket == null || ticket.usedById != null) {
reply.code(400);
return;
}