feed model -> unique:true -> for safety (and to avoid mongoose warning)
This commit is contained in:
@ -17,8 +17,7 @@ const feedSchemaObject = {
|
|||||||
|
|
||||||
url: {
|
url: {
|
||||||
type: String,
|
type: String,
|
||||||
required: true,
|
required: true
|
||||||
unique: true
|
|
||||||
},
|
},
|
||||||
|
|
||||||
imageUrl: {
|
imageUrl: {
|
||||||
|
Reference in New Issue
Block a user