ui rebuild
This commit is contained in:
@@ -651,7 +651,13 @@ export class OneboxDatabase {
|
||||
if (!this.db) throw new Error('Database not initialized');
|
||||
|
||||
const rows = this.query('SELECT * FROM services WHERE name = ?', [name]);
|
||||
return rows.length > 0 ? this.rowToService(rows[0]) : null;
|
||||
if (rows.length > 0) {
|
||||
logger.info(`getServiceByName: raw row data: ${JSON.stringify(rows[0])}`);
|
||||
const service = this.rowToService(rows[0]);
|
||||
logger.info(`getServiceByName: service object containerID: ${service.containerID}`);
|
||||
return service;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
getServiceByID(id: number): IService | null {
|
||||
|
||||
Reference in New Issue
Block a user