Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Szotkowski committed Sep 20, 2023
1 parent cd78e80 commit 1e01144
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/controllers/user.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -524,14 +524,15 @@ export class UserController {
id: {type: 'number'},
email: {type: 'string'},
username: {type: 'string'},
wrappedDEK: {type: 'string'},
initializationVector: {type: 'string'},
kekSalt: {type: 'string'},
language: {enum: Object.values(Language)},
darkmode: {type: 'string'},
emailVerified: {type: 'string'},
darkmode: {type: 'boolean'},
date: {type: 'string'},
nick: {type: 'string'},
bio: {type: 'string'},
link: {type: 'string'},
wrappedDEK: {type: 'string'},
favorites: {
type: 'array',
items: {
Expand All @@ -548,14 +549,12 @@ export class UserController {
async getUser(): Promise<
Omit<
User,
'passwordHash' | 'initializationVector' | 'kekSalt' | 'deleteHash'
'passwordHash' | 'deleteHash'
>
> {
const user = await this.userRepository.findById(this.user.id, {
fields: {
passwordHash: false,
initializationVector: false,
kekSalt: false,
deleteHash: false,
},
});
Expand Down

0 comments on commit 1e01144

Please sign in to comment.