chore: tweak webhook payload

This commit is contained in:
Steven
2024-06-01 23:46:00 +08:00
parent 8c0bee3840
commit 2e0d5412b4
2 changed files with 24 additions and 10 deletions

View File

@ -1224,6 +1224,10 @@ func convertMemoToWebhookPayload(memo *v1pb.Memo) (*webhook.WebhookPayload, erro
return &webhook.WebhookPayload{
CreatorID: creatorID,
CreatedTs: time.Now().Unix(),
Memo: memo,
Memo: &webhook.Memo{
Name: memo.Name,
Creator: memo.Creator,
Content: memo.Content,
},
}, nil
}