mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 02:11:08 -06:00
DEV: Reserve assigned notification type (#16207)
* DEV: Reserve assigned notification type * update constants
This commit is contained in:
parent
69752f0100
commit
100a84d345
@ -35,4 +35,6 @@ export const NOTIFICATION_TYPES = {
|
||||
chat_message: 30,
|
||||
chat_invitation: 31,
|
||||
chat_group_mention: 32,
|
||||
chat_quoted: 33,
|
||||
assigned: 34,
|
||||
};
|
||||
|
@ -110,7 +110,8 @@ class Notification < ActiveRecord::Base
|
||||
chat_message: 30,
|
||||
chat_invitation: 31,
|
||||
chat_group_mention: 32, # March 2022 - This is obsolete, as all chat_mentions use `chat_mention` type
|
||||
chat_quoted: 33
|
||||
chat_quoted: 33,
|
||||
assigned: 34
|
||||
)
|
||||
end
|
||||
|
||||
|
@ -51,6 +51,7 @@ describe Notification do
|
||||
expect(@types[:event_invitation]).to eq(28)
|
||||
expect(@types[:chat_mention]).to eq(29)
|
||||
expect(@types[:chat_message]).to eq(30)
|
||||
expect(@types[:assigned]).to eq(34)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -106,6 +106,9 @@
|
||||
},
|
||||
"chat_quoted": {
|
||||
"type": "integer"
|
||||
},
|
||||
"assigned": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
|
Loading…
Reference in New Issue
Block a user