Files
coder/coderd/notifications/testdata/rendered-templates/webhook/TemplateYourAccountActivated.json.golden
T
Vincent Vielle 522181fead feat(coderd): add new dispatch logic for coder inbox (#16764)
This PR is [resolving the dispatch part of Coder
Inbocx](https://github.com/coder/internal/issues/403).

Since the DB layer has been merged - we now want to insert notifications
into Coder Inbox in parallel of the other delivery target.

To do so, we push two messages instead of one using the `Enqueue`
method.
2025-03-05 22:43:18 +01:00

29 lines
911 B
Plaintext

{
"_version": "1.1",
"msg_id": "00000000-0000-0000-0000-000000000000",
"payload": {
"_version": "1.1",
"notification_name": "Your account has been activated",
"notification_template_id": "00000000-0000-0000-0000-000000000000",
"user_id": "00000000-0000-0000-0000-000000000000",
"user_email": "bobby@coder.com",
"user_name": "Bobby",
"user_username": "bobby",
"actions": [
{
"label": "Open Coder",
"url": "http://test.com"
}
],
"labels": {
"activated_account_name": "bobby",
"initiator": "rob"
},
"data": null,
"targets": null
},
"title": "Your account \"bobby\" has been activated",
"title_markdown": "Your account \"bobby\" has been activated",
"body": "Hi Bobby,\n\nYour account bobby has been activated by rob.",
"body_markdown": "Hi Bobby,\n\nYour account **bobby** has been activated by **rob**."
}