Skip to content
This repository has been archived by the owner on Oct 1, 2021. It is now read-only.

Commit

Permalink
fix(User model): add sparse parameter to ids
Browse files Browse the repository at this point in the history
  • Loading branch information
VChet committed Feb 14, 2021
1 parent 1cd1cd6 commit 5b90c6f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions models/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,13 @@ export const UserSchema: Schema = new Schema({
},
githubId: {
type: Number,
unique: true
unique: true,
sparse: true
},
codebergId: {
type: Number,
unique: true
unique: true,
sparse: true
},
orgs: {
type: {
Expand Down

0 comments on commit 5b90c6f

Please sign in to comment.