👔(service-worker) add new field to create doc

We now display the creation and modification date
of the document in the document grid, so when we
create a new document in offline mode we need to
set the dates as well.
This commit is contained in:
Anthony LC
2024-07-08 11:12:27 +02:00
committed by Anthony LC
parent 3d370e5714
commit 8007c45a35

View File

@@ -179,6 +179,8 @@ export class ApiPlugin implements WorkboxPlugin {
...bodyMutate,
id: uuid,
content: '',
created_at: new Date().toISOString(),
updated_at: new Date().toISOString(),
abilities: {
destroy: true,
versions_destroy: true,