From d70c4cdc357360dd54d7a7c26f54f0b0c4277f1d Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Tue, 18 Jul 2023 22:57:35 -0400 Subject: [PATCH] fix(striker-ui-api): correct reversed check on get server VNC info --- striker-ui-api/src/lib/accessModule.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); }