Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit d366ae6

Browse files
committed
Index update to fix conflict bug
#79
1 parent 3c10e56 commit d366ae6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models/Issue.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const schema = new mongoose.Schema({
2424
default: Date.now,
2525
},
2626
// From topcoder api
27-
challengeId: {type: Number, required: true, unique: true},
27+
challengeId: {type: Number, required: false, unique: true, sparse: true},
2828
projectId: {type: mongoose.Schema.Types.ObjectId, ref: 'Project'},
2929
assignedAt: {type: Date, required: false},
3030
});

0 commit comments

Comments
 (0)