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

Commit c9b1588

Browse files
committed
1 parent 95a777f commit c9b1588

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/Issue.js

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

0 commit comments

Comments
 (0)