mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-22 14:30:58 -04:00
add reset password in cli
This commit is contained in:
parent
6f489e7e0f
commit
d0aad3400c
6 changed files with 115 additions and 20 deletions
|
@ -11,7 +11,7 @@ class Database {
|
|||
static latestVersion = 6;
|
||||
static noReject = true;
|
||||
|
||||
static connect() {
|
||||
static async connect() {
|
||||
const Dialect = require("knex/lib/dialects/sqlite3/index.js");
|
||||
Dialect.prototype._driver = () => require("@louislam/sqlite3");
|
||||
|
||||
|
@ -27,6 +27,10 @@ class Database {
|
|||
idleTimeoutMillis: 30000,
|
||||
}
|
||||
}));
|
||||
|
||||
// Auto map the model to a bean object
|
||||
R.freeze(true)
|
||||
await R.autoloadModels("./server/model");
|
||||
}
|
||||
|
||||
static async patch() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue