Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 02a0a8c

Browse files
committedSep 25, 2018
Index update to fix conflict bug
#79
1 parent 3b5d6dd commit 02a0a8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/models/Issue.js

Lines changed: 1 addition & 1 deletion
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)
This repository has been archived.