upd: store old date and use it in previous versions

This commit is contained in:
Mar0xy 2023-10-22 14:07:04 +02:00
parent 2706b6b618
commit 83be996a3d
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
6 changed files with 27 additions and 6 deletions

View file

@ -48,4 +48,9 @@ export class NoteEdit {
comment: "The updated date of the Note.",
})
public updatedAt: Date;
@Column("timestamp with time zone", {
comment: "The old date from before the edit",
})
public oldDate: Date;
}