mirror of
https://github.com/coder/coder.git
synced 2026-06-03 21:18:24 +00:00
ef62e626c8
Currently the `targets` column in `inbox_notifications` doesn't get filled. This PR fixes that. Rather than give targets special treatment, we should put it in the payload like everything else. This correctly propagates notification targets to the inbox table without much code change.
28 lines
1.1 KiB
Plaintext
28 lines
1.1 KiB
Plaintext
{
|
|
"_version": "1.1",
|
|
"msg_id": "00000000-0000-0000-0000-000000000000",
|
|
"payload": {
|
|
"_version": "1.2",
|
|
"notification_name": "One-Time Passcode",
|
|
"notification_template_id": "00000000-0000-0000-0000-000000000000",
|
|
"user_id": "00000000-0000-0000-0000-000000000000",
|
|
"user_email": "bobby/drop-table+user@coder.com",
|
|
"user_name": "Bobby",
|
|
"user_username": "bobby",
|
|
"actions": [
|
|
{
|
|
"label": "Reset password",
|
|
"url": "http://test.com/reset-password/change?otp=00000000-0000-0000-0000-000000000000\u0026email=bobby%2Fdrop-table%2Buser%40coder.com"
|
|
}
|
|
],
|
|
"labels": {
|
|
"one_time_passcode": "00000000-0000-0000-0000-000000000000"
|
|
},
|
|
"data": null,
|
|
"targets": null
|
|
},
|
|
"title": "Reset your password for Coder",
|
|
"title_markdown": "Reset your password for Coder",
|
|
"body": "Hi Bobby,\n\nUse the link below to reset your password.\n\nIf you did not make this request, you can ignore this message.",
|
|
"body_markdown": "Hi Bobby,\n\nUse the link below to reset your password.\n\nIf you did not make this request, you can ignore this message."
|
|
} |