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

main
Tsu-ba-me 1 year ago committed by digimer
parent ba335cc411
commit e4ce6e1014
  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';`,
);
if (rows.length) {
if (!rows.length) {
throw new Error('No record found');
}

Loading…
Cancel
Save