From 8007c45a352f9b5de000baf3292c6f72070c3559 Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Mon, 8 Jul 2024 11:12:27 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=94(service-worker)=20add=20new=20fiel?= =?UTF-8?q?d=20to=20create=20doc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .../apps/impress/src/features/service-worker/ApiPlugin.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frontend/apps/impress/src/features/service-worker/ApiPlugin.ts b/src/frontend/apps/impress/src/features/service-worker/ApiPlugin.ts index 55dc888f..9fbb2ce5 100644 --- a/src/frontend/apps/impress/src/features/service-worker/ApiPlugin.ts +++ b/src/frontend/apps/impress/src/features/service-worker/ApiPlugin.ts @@ -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,