|
@@ -340,7 +340,7 @@ export class Database extends SQLiteController {
|
|
|
await this.run(
|
|
await this.run(
|
|
|
`INSERT INTO HealthCheckParams(ConfigID, Type, Key, Value) VALUES
|
|
`INSERT INTO HealthCheckParams(ConfigID, Type, Key, Value) VALUES
|
|
|
(?, ?, ?, ?),
|
|
(?, ?, ?, ?),
|
|
|
- (?, ?, ?, ?),${conf.checks.length ? `,${insCheckValues.map(() => '(?, ?, ?, ?)').join(',')}` : ''}`,
|
|
|
|
|
|
|
+ (?, ?, ?, ?)${conf.checks.length ? `,${insCheckValues.map(() => '(?, ?, ?, ?)').join(',')}` : ''}`,
|
|
|
[
|
|
[
|
|
|
...[res.lastID, 'text', 'url', conf.url],
|
|
...[res.lastID, 'text', 'url', conf.url],
|
|
|
...[res.lastID, 'number', 'interval', conf.interval],
|
|
...[res.lastID, 'number', 'interval', conf.interval],
|