Browse Source

A little better assert.

bookshelf-removal
Zed A. Shaw 2 months ago
parent
commit
fc21d19ae1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/models.js

+ 1
- 1
lib/models.js View File

@@ -201,7 +201,7 @@ class Auth extends Model.from_table('auths') {
}

static async find_by_token(token) {
assert(token);
assert(token, "Token required on find_by_token.");
return Auth.first({token});
}


Loading…
Cancel
Save