fix Serialized type
This commit is contained in:
parent
ab7a8a2dae
commit
746770ac3b
2 changed files with 11 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue