feat: Update error handling to use getErrorMessage utility and improve logging across multiple services
This commit is contained in:
@@ -836,7 +836,7 @@ export class OneboxDatabase {
|
||||
if (!this.db) throw new Error('Database not initialized');
|
||||
|
||||
const fields: string[] = [];
|
||||
const values: unknown[] = [];
|
||||
const values: BindValue[] = [];
|
||||
|
||||
if (updates.image !== undefined) {
|
||||
fields.push('image = ?');
|
||||
@@ -1202,7 +1202,7 @@ export class OneboxDatabase {
|
||||
if (!this.db) throw new Error('Database not initialized');
|
||||
|
||||
const fields: string[] = [];
|
||||
const values: unknown[] = [];
|
||||
const values: BindValue[] = [];
|
||||
|
||||
if (updates.certPath) {
|
||||
fields.push('cert_path = ?');
|
||||
@@ -1303,7 +1303,7 @@ export class OneboxDatabase {
|
||||
if (!this.db) throw new Error('Database not initialized');
|
||||
|
||||
const fields: string[] = [];
|
||||
const values: unknown[] = [];
|
||||
const values: BindValue[] = [];
|
||||
|
||||
if (updates.domain !== undefined) {
|
||||
fields.push('domain = ?');
|
||||
@@ -1405,7 +1405,7 @@ export class OneboxDatabase {
|
||||
if (!this.db) throw new Error('Database not initialized');
|
||||
|
||||
const fields: string[] = [];
|
||||
const values: unknown[] = [];
|
||||
const values: BindValue[] = [];
|
||||
|
||||
if (updates.certDomain !== undefined) {
|
||||
fields.push('cert_domain = ?');
|
||||
@@ -1524,7 +1524,7 @@ export class OneboxDatabase {
|
||||
if (!this.db) throw new Error('Database not initialized');
|
||||
|
||||
const fields: string[] = [];
|
||||
const values: unknown[] = [];
|
||||
const values: BindValue[] = [];
|
||||
|
||||
if (updates.subdomain !== undefined) {
|
||||
fields.push('subdomain = ?');
|
||||
@@ -1711,7 +1711,7 @@ export class OneboxDatabase {
|
||||
if (!this.db) throw new Error('Database not initialized');
|
||||
|
||||
const fields: string[] = [];
|
||||
const values: unknown[] = [];
|
||||
const values: BindValue[] = [];
|
||||
|
||||
if (updates.status !== undefined) {
|
||||
fields.push('status = ?');
|
||||
|
||||
Reference in New Issue
Block a user