|
|
@ -7,7 +7,7 @@ let devAppClient |
|
|
// we init this as we want to keep the connection open all the time
|
|
|
// we init this as we want to keep the connection open all the time
|
|
|
// reduces the performance hit
|
|
|
// reduces the performance hit
|
|
|
exports.init = async () => { |
|
|
exports.init = async () => { |
|
|
devAppClient = await (new Client(DB_NAME)).init() |
|
|
devAppClient = await new Client(DB_NAME).init() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
exports.doesUserHaveLock = async (devAppId, userId) => { |
|
|
exports.doesUserHaveLock = async (devAppId, userId) => { |
|
|
|