Skip to content

Commit 8007c45

Browse files
committed
👔(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.
1 parent 3d370e5 commit 8007c45

File tree

1 file changed

+2
-0
lines changed
  • src/frontend/apps/impress/src/features/service-worker

1 file changed

+2
-0
lines changed

src/frontend/apps/impress/src/features/service-worker/ApiPlugin.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ export class ApiPlugin implements WorkboxPlugin {
179179
...bodyMutate,
180180
id: uuid,
181181
content: '',
182+
created_at: new Date().toISOString(),
183+
updated_at: new Date().toISOString(),
182184
abilities: {
183185
destroy: true,
184186
versions_destroy: true,

0 commit comments

Comments
 (0)