diff --git a/backend/db.coffee b/backend/db.coffee index 03517e8..1c9ca8f 100644 --- a/backend/db.coffee +++ b/backend/db.coffee @@ -57,10 +57,10 @@ FFTCGDB::close = -> @db.close (err) -> if err logger.error "Error closing: '#{err.message}'" - resolve 'ok' + reject 'db' else logger.warn "Closed '#{@filename}'" - reject 'db' + resolve 'ok' FFTCGDB::register = (login, password) -> that = @