fix(striker-ui-api): sort files by name

main
Tsu-ba-me 1 year ago
parent 6fce2258ba
commit 2dc0fd3835
  1. 3
      striker-ui-api/src/lib/request_handlers/file/buildQueryFileDetail.ts
  2. 3
      striker-ui-api/src/lib/request_handlers/file/getFile.ts

@ -46,5 +46,6 @@ export const buildQueryFileDetail = ({
JOIN hosts AS hos
ON fil_loc.file_location_host_uuid = hos.host_uuid
WHERE fil.file_type != '${DELETED}'
${condFileUUIDs};`;
${condFileUUIDs}
ORDER BY fil.file_name ASC;`;
};

@ -17,7 +17,8 @@ export const getFile: RequestHandler = buildGetRequestHandler((request) => {
file_type,
file_md5sum
FROM files
WHERE file_type != '${DELETED}';`;
WHERE file_type != '${DELETED}'
ORDER BY file_name ASC;`;
if (fileUUIDs) {
query = buildQueryFileDetail({

Loading…
Cancel
Save