Skip to content

Commit 37a02fe

Browse files
fix collection projects
1 parent 3548b20 commit 37a02fe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

service/src/core/projects/_schemas/project.schema.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ import { AbstractSchema } from '~/_common/abstracts/schemas/abstract.schema'
44

55
export type ProjectDocument = Project & Document
66

7-
@Schema({ versionKey: false })
7+
@Schema({
8+
collection: 'projects',
9+
versionKey: false,
10+
})
811
export class Project extends AbstractSchema {
912
@Prop({
1013
required: true,

0 commit comments

Comments
 (0)