Skip to content

Commit

Permalink
fix change user email
Browse files Browse the repository at this point in the history
  • Loading branch information
arily committed Jan 2, 2024
1 parent f8ece4d commit 41cc062
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/server/backend/bancho.py/server/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import {
toSafeName,
toUserClan,
toUserCompact,
toUserOptional,
} from '../transforms'
import * as schema from '../drizzle/schema'
import { ArticleProvider } from './article'
Expand Down Expand Up @@ -498,6 +499,7 @@ class DBUserProvider extends Base<Id> implements Base<Id> {
return {
...toUserCompact(result, this.config),
...toUserClan(result),
...toUserOptional(result),
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/server/trpc/routers/me.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const router = _router({
}).partial(),
)
.mutation(async ({ ctx, input }) => {
const update: typeof input = pick(input, ['flag', 'preferredMode'])
const update: typeof input = pick(input, ['flag', 'preferredMode', 'email'])
// TODO: check email(should verified by frontend with another request (not impl'd yet ))
if (input.name) {
const existingUser = await users.getCompact({
Expand Down

0 comments on commit 41cc062

Please sign in to comment.