mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 06:34:39 -04:00
feat(note): save createdAt in a separate column
To keep the createdAt date stable, even when the revisions are dropped, this adds a separate column to store this data separately from revisions. Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
342efcd7b7
commit
09ec447069
4 changed files with 10 additions and 6 deletions
|
@ -315,7 +315,7 @@ describe('Notes', () => {
|
|||
'test5a',
|
||||
);
|
||||
// save the creation time
|
||||
const createDate = (await note.revisions)[0].createdAt;
|
||||
const createDate = note.createdAt;
|
||||
// wait one second
|
||||
await new Promise((r) => setTimeout(r, 1000));
|
||||
// update the note
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue