This commit is contained in:
2026-05-13 19:58:16 +03:00
commit f5adeb292b
78 changed files with 12024 additions and 0 deletions

38
context/rocketchat.js Normal file
View File

@@ -0,0 +1,38 @@
const config = require('./config')
const rocketchat = require('../lib/mongo')
rocketchat.messagesCollection = function () {
return rocketchat.collection('rocketchat_message')
}
rocketchat.roomsCollection = function () {
return rocketchat.collection('rocketchat_room')
}
rocketchat.usersCollection = function () {
return rocketchat.collection('users')
}
rocketchat.uploadsCollection = function () {
return rocketchat.collection('rocketchat_uploads')
}
rocketchat.avatarsCollection = function () {
return rocketchat.collection('rocketchat_avatars')
}
rocketchat.emojiCollection = function () {
return rocketchat.collection('rocketchat_custom_emoji')
}
module.exports = {
config,
rocketchat,
values: {
//
// Cached values can be stored
// here
//
}
}