👔(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,
|
...bodyMutate,
|
||||||
id: uuid,
|
id: uuid,
|
||||||
content: '',
|
content: '',
|
||||||
|
created_at: new Date().toISOString(),
|
||||||
|
updated_at: new Date().toISOString(),
|
||||||
abilities: {
|
abilities: {
|
||||||
destroy: true,
|
destroy: true,
|
||||||
versions_destroy: true,
|
versions_destroy: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user