mirror of
https://github.com/coder/coder.git
synced 2026-10-24 11:43:39 +08:00
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.
30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
{
|
|
"_version": "1.1",
|
|
"msg_id": "00000000-0000-0000-0000-000000000000",
|
|
"payload": {
|
|
"_version": "1.1",
|
|
"notification_name": "User account created",
|
|
"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": "View accounts",
|
|
"url": "http://test.com/deployment/users?filter=status%3Aactive"
|
|
}
|
|
],
|
|
"labels": {
|
|
"created_account_name": "bobby",
|
|
"created_account_user_name": "William Tables",
|
|
"initiator": "rob"
|
|
},
|
|
"data": null,
|
|
"targets": null
|
|
},
|
|
"title": "User account \"bobby\" created",
|
|
"title_markdown": "User account \"bobby\" created",
|
|
"body": "Hi Bobby,\n\nNew user account bobby has been created.\n\nThis new user account was created for William Tables by rob.",
|
|
"body_markdown": "Hi Bobby,\n\nNew user account **bobby** has been created.\n\nThis new user account was created for **William Tables** by **rob**."
|
|
} |