mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 17:55:17 -04:00
RevisionsService: Get note revision from database
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
4649b6e796
commit
446d6dec06
2 changed files with 27 additions and 9 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue