diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-02-28 16:46:25 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-02-28 16:46:25 +0900 |
| commit | 746770ac3b83b65f173f34c6fd045ef5be6e7fbf (patch) | |
| tree | d26f7ffda2a4d5f681e535af2264f45b38257961 /packages/backend/src/core/WebhookService.ts | |
| parent | enhance(client): 招待コードが必要なことが分かりやすいように (diff) | |
| download | misskey-746770ac3b83b65f173f34c6fd045ef5be6e7fbf.tar.gz misskey-746770ac3b83b65f173f34c6fd045ef5be6e7fbf.tar.bz2 misskey-746770ac3b83b65f173f34c6fd045ef5be6e7fbf.zip | |
fix Serialized type
Diffstat (limited to 'packages/backend/src/core/WebhookService.ts')
| -rw-r--r-- | packages/backend/src/core/WebhookService.ts | 3 |
1 files changed, 3 insertions, 0 deletions
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 { |