-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.js
More file actions
37 lines (32 loc) · 789 Bytes
/
constants.js
File metadata and controls
37 lines (32 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
module.exports = {
CONFIG: {
ROOM: {
PROTECT_FROM_DELETING: 60000,
CLEAN_UNUSED_TIMEOUT: 5000,
},
},
ERROR: {
ROOM: {
OK: {
code: 0,
message: null,
},
NO_ID_PROVIDED: {
code: 1,
message: "No id provided",
},
UNDEFINED_ROOM: {
code: 2,
message: "There is no such room",
},
NO_KINOPOISK_PROVIDED: {
code: 3,
message: "Provide kinopoisk id",
},
CREATE_ROOM_ERROR: {
code: 4,
message: "Internal error. Room wasn't created",
},
},
},
};