Skip to content

Commit 1db6091

Browse files
committed
added default date tie in schema
1 parent 07b784d commit 1db6091

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/credential/schemas/credntial.schema.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ import { IsVcId } from 'src/utils/customDecorator/vc.decorator';
55

66
export type CredentialModel = Credential & Document;
77

8-
@Schema()
8+
@Schema({
9+
timestamps: true,
10+
})
911
export class Credential {
1012
@IsString()
1113
@Prop({ required: true })

src/did/schemas/did.schema.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ export enum RegistrationStatus {
1313
COMPLETED = 'COMPLETED',
1414
UNREGISTRED = 'UNREGISTRED',
1515
}
16-
@Schema()
16+
@Schema({
17+
timestamps: true,
18+
})
1719
export class Did {
1820
@ApiHideProperty()
1921
@IsOptional()

0 commit comments

Comments
 (0)