diff --git a/models/User.ts b/models/User.ts index 8a7243b..b37011e 100644 --- a/models/User.ts +++ b/models/User.ts @@ -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: {