Skip to content

Commit

Permalink
fix(database): admin schema creation adding explicit primaryKey (#522)
Browse files Browse the repository at this point in the history
  • Loading branch information
kon14 committed Feb 16, 2023
1 parent 6856ede commit a5ee620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/database/src/admin/schema.admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export class SchemaAdmin {
}

Object.assign(fields, {
_id: { type: TYPE.ObjectId, required: true, unique: true, primaryKey: true },
_id: { type: TYPE.ObjectId, required: true, unique: true },
createdAt: { type: TYPE.Date, required: true },
updatedAt: { type: TYPE.Date, required: true },
});
Expand Down

0 comments on commit a5ee620

Please sign in to comment.