Skip to content
Snippets Groups Projects
Commit b60c9852 authored by syuilo's avatar syuilo
Browse files

fix(server): メールアドレス更新時にバリデーションが正しく行われていないのを修正

parent 785c67ea
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,14 @@
You should also include the user name that made the change.
-->
## 13.x.x (unreleased)
### Improvements
-
### Bugfixes
- fix(server): メールアドレス更新時にバリデーションが正しく行われていないのを修正
## 13.8.1 (2023/02/26)
### Bugfixes
......
......@@ -73,8 +73,8 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
}
if (ps.email != null) {
const available = await this.emailService.validateEmailForAccount(ps.email);
if (!available) {
const res = await this.emailService.validateEmailForAccount(ps.email);
if (!res.available) {
throw new ApiError(meta.errors.unavailable);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment