Skip to content
This repository was archived by the owner on Aug 12, 2023. It is now read-only.

Commit f3a8cfe

Browse files
authored
Fix relayer index definition (#254)
1 parent c676d2c commit f3a8cfe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/model/relayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const schema = mongoose.Schema({
3030
url: String,
3131
});
3232

33-
schema.index({ slug: 1, unique: true });
33+
schema.index({ slug: 1 }, { unique: true });
3434

3535
const Model = mongoose.model('Relayer', schema);
3636

0 commit comments

Comments
 (0)