1
0

Add notification for project status updates (#511)

* Add notification for project status updates

* aaaaaa

* cargo sqlx prepare

* use friendly name of statuses

* Update src/models/projects.rs

Co-authored-by: triphora <emma@modrinth.com>

* only send notifications to accepted users

* only send notifications for people not on the team

* cargo sqlx prepare

* !=

* fully address pr comments

Co-authored-by: triphora <emma@modrinth.com>
Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
This commit is contained in:
BasiqueEvangelist
2022-12-31 00:40:00 +03:00
committed by GitHub
parent 34af33607b
commit 161dee89ec
3 changed files with 71 additions and 2 deletions

View File

@@ -7186,6 +7186,26 @@
},
"query": "\n UPDATE mods\n SET status = $1\n WHERE (id = $2)\n "
},
"ea1525cbe7460d0d9e9da8f448c661f7209bc1a7a04e2ea0026fa69c3f550a14": {
"describe": {
"columns": [
{
"name": "id",
"ordinal": 0,
"type_info": "Int8"
}
],
"nullable": [
false
],
"parameters": {
"Left": [
"Int8"
]
}
},
"query": "\n SELECT tm.user_id id\n FROM team_members tm\n WHERE tm.team_id = $1 AND tm.accepted\n "
},
"ebef881a0dae70e990814e567ed3de9565bb29b772782bc974c953af195fd6d7": {
"describe": {
"columns": [