1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-02 21:26:33 +02:00
This commit is contained in:
syuilo
2020-02-01 07:16:52 +09:00
parent d355f3f77c
commit 7ed3448e13
19 changed files with 152 additions and 216 deletions

View File

@@ -49,7 +49,7 @@ export default define(meta, async (ps, user) => {
throw new ApiError(meta.errors.incorrectPassword);
}
await UserProfiles.update({ userId: user.id }, {
await UserProfiles.update(user.id, {
email: ps.email,
emailVerified: false,
emailVerifyCode: null
@@ -66,7 +66,7 @@ export default define(meta, async (ps, user) => {
if (ps.email != null) {
const code = rndstr('a-z0-9', 16);
await UserProfiles.update({ userId: user.id }, {
await UserProfiles.update(user.id, {
emailVerifyCode: code
});