Skip to content

Commit 5e2d0a9

Browse files
committed
fix: do not overwrite publicKeys on updateUser
1 parent c3bd14e commit 5e2d0a9

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/db/mongo/users.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@ export const updateUser = async (user: Partial<User>): Promise<void> => {
7777
if (user.email) {
7878
user.email = user.email.toLowerCase();
7979
}
80-
if (!user.publicKeys) {
81-
user.publicKeys = [];
82-
}
8380
const { _id, ...userWithoutId } = user;
8481
const filter = _id ? { _id: new ObjectId(_id) } : { username: user.username };
8582
const options = { upsert: true };

0 commit comments

Comments
 (0)