👔(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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user