diff --git a/src/server/model/notification/provider/webhook.ts b/src/server/model/notification/provider/webhook.ts index 5e21bd9..34496ff 100644 --- a/src/server/model/notification/provider/webhook.ts +++ b/src/server/model/notification/provider/webhook.ts @@ -1,6 +1,7 @@ import { NotificationProvider } from './type'; import { baseContentTokenizer } from '../token'; import axios from 'axios'; +import dayjs from 'dayjs'; interface WebhookPayload { webhookUrl: string; @@ -16,8 +17,10 @@ export const webhook: NotificationProvider = { await axios.post(webhookUrl, { notification, + title, content, raw: message, + time: dayjs().toISOString(), }); }, };