mirror of
https://github.com/sim1222/misskey.git
synced 2025-08-04 15:53:51 +09:00
fix Serialized type
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user