Skip to content

Commit

Permalink
fix(server): fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
forehalo committed Mar 11, 2024
1 parent 18edaed commit a2c12d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/backend/server/src/core/user/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ export class LimitedUserType implements Partial<User> {

@Field(() => Boolean, {
description: 'User password has been set',
nullable: true,
})
hasPassword!: boolean;
hasPassword!: boolean | null;
}

export const UserOrLimitedUser = createUnionType({
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/server/src/schema.gql
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ type LimitedUserType {
email: String!

"""User password has been set"""
hasPassword: Boolean!
hasPassword: Boolean
}

type Mutation {
Expand Down

0 comments on commit a2c12d2

Please sign in to comment.