fix(striker-ui-api): correct reversed check on get server VNC info

main
Tsu-ba-me 1 year ago committed by Yanhao Lei
parent 9043023492
commit d70c4cdc35
  1. 2
      striker-ui-api/src/lib/accessModule.ts

@ -389,7 +389,7 @@ const getVncinfo = async (serverUuid: string): Promise<ServerDetailVncInfo> => {
`SELECT variable_value FROM variables WHERE variable_name = 'server::${serverUuid}::vncinfo';`, `SELECT variable_value FROM variables WHERE variable_name = 'server::${serverUuid}::vncinfo';`,
); );
if (rows.length) { if (!rows.length) {
throw new Error('No record found'); throw new Error('No record found');
} }

Loading…
Cancel
Save