From 746770ac3b83b65f173f34c6fd045ef5be6e7fbf Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 28 Feb 2023 16:46:25 +0900 Subject: fix Serialized type --- packages/backend/src/core/WebhookService.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'packages/backend/src/core/WebhookService.ts') diff --git a/packages/backend/src/core/WebhookService.ts b/packages/backend/src/core/WebhookService.ts index 30caa9682c..ac1e413de6 100644 --- a/packages/backend/src/core/WebhookService.ts +++ b/packages/backend/src/core/WebhookService.ts @@ -47,6 +47,7 @@ export class WebhookService implements OnApplicationShutdown { this.webhooks.push({ ...body, createdAt: new Date(body.createdAt), + latestSentAt: body.latestSentAt ? new Date(body.latestSentAt) : null, }); } break; @@ -57,11 +58,13 @@ export class WebhookService implements OnApplicationShutdown { this.webhooks[i] = { ...body, createdAt: new Date(body.createdAt), + latestSentAt: body.latestSentAt ? new Date(body.latestSentAt) : null, }; } else { this.webhooks.push({ ...body, createdAt: new Date(body.createdAt), + latestSentAt: body.latestSentAt ? new Date(body.latestSentAt) : null, }); } } else { -- cgit v1.2.3-freya