RevisionsService: Get note revision from database

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2020-09-22 21:42:17 +02:00
parent 4649b6e796
commit 446d6dec06
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
2 changed files with 27 additions and 9 deletions

View file

@ -1,4 +1,4 @@
import { IsNumber, IsString } from 'class-validator';
import { IsDate, IsNumber, IsString } from 'class-validator';
import { Revision } from './revision.entity';
export class RevisionDto {
@ -8,4 +8,6 @@ export class RevisionDto {
content: string;
@IsString()
patch: string;
@IsDate()
createdAt: Date;
}