app moved to next.js
This commit is contained in:
1 parent
dcca513aea
commit
43af2996bf
48 files changed
+1147
-1027
No files matched your search
+12
-6
@@ -1,13 +1,19 @@
|
||||
const db = require('./db')
|
||||
|
||||
const store = new Map()
|
||||
|
||||
class Data {
|
||||
static setStore(Class, collection) {
|
||||
store.set(Class, collection)
|
||||
}
|
||||
static setStore(Class, collection) {
|
||||
store.set(Class, collection)
|
||||
}
|
||||
|
||||
static getStore(Class) {
|
||||
return store.get(Class)
|
||||
}
|
||||
static getStore(Class) {
|
||||
return store.get(Class)
|
||||
}
|
||||
|
||||
static getCollection(name) {
|
||||
return db.collection(name)
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Data
|
||||
Reference in new issue
Block a user