Skip to content

Commit c08f029

Browse files
removed _id in schema to avoid conflict and bugs
1 parent ea6331a commit c08f029

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/db/papers.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ const adminSchema = new Schema<IAdminPaper>({
1515
isSelected: { type: Boolean, default: false },
1616
});
1717
const paperSchema = new Schema<IPaper>({
18-
_id: { type: String, required: true },
1918
finalUrl: { type: String, required: true },
2019
thumbnailUrl: { type: String, required: true },
2120
subject: { type: String, required: true, index: true },

0 commit comments

Comments
 (0)