1
0
Fork 0
mirror of synced 2024-09-30 00:57:16 +13:00
This commit is contained in:
Martin McKeaveney 2021-04-15 16:49:35 +01:00
parent 9e1315c535
commit 9cebd859f8
2 changed files with 8 additions and 8 deletions

View file

@ -15,13 +15,13 @@ let POUCH_DB_DEFAULTS = {
skip_setup: env.isProd(),
}
if (env.isTest()) {
PouchDB.plugin(require("pouchdb-adapter-memory"))
POUCH_DB_DEFAULTS = {
prefix: undefined,
adapter: "memory",
}
}
// if (env.isTest()) {
// PouchDB.plugin(require("pouchdb-adapter-memory"))
// POUCH_DB_DEFAULTS = {
// prefix: undefined,
// adapter: "memory",
// }
// }
const Pouch = PouchDB.defaults(POUCH_DB_DEFAULTS)

View file

@ -28,7 +28,7 @@ exports.authenticate = async (ctx, next) => {
exports.logout = async ctx => {
clearCookie(ctx, Cookies.Auth)
ctx.body = { messaged: "User logged out" }
ctx.body = { message: "User logged out" }
}
exports.googleAuth = async () => {