diff --git a/striker-ui-api/src/lib/accessModule.ts b/striker-ui-api/src/lib/accessModule.ts index 7e0fa0be..8360deda 100644 --- a/striker-ui-api/src/lib/accessModule.ts +++ b/striker-ui-api/src/lib/accessModule.ts @@ -389,7 +389,7 @@ const getVncinfo = async (serverUuid: string): Promise => { `SELECT variable_value FROM variables WHERE variable_name = 'server::${serverUuid}::vncinfo';`, ); - if (rows.length) { + if (!rows.length) { throw new Error('No record found'); }