This commit is contained in:
Martin McKeaveney 2021-04-15 16:49:35 +01:00
parent 2edb559fcf
commit 212a1217c5
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 () => {