Skip to content

Commit b8bf022

Browse files
committed
fix api syntax categories
1 parent a24be8c commit b8bf022

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

service/src/core/categories/_schemas/categories.schema.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'
2-
import { Document, Types } from 'mongoose'
2+
import { Types } from 'mongoose'
33
import { AbstractSchema } from '~/_common/abstracts/schemas/abstract.schema'
44

5-
export type CategoriesDocument = Categories & Document
6-
75
@Schema({
86
collection: 'categories',
97
versionKey: false,
@@ -33,12 +31,14 @@ export class Categories extends AbstractSchema {
3331
@Prop({
3432
required: true,
3533
type: Boolean,
34+
default: true,
3635
})
3736
public selectable: boolean
3837

3938
@Prop({
4039
required: true,
4140
type: Boolean,
41+
default: false,
4242
})
4343
public disabled: boolean
4444

0 commit comments

Comments
 (0)