Local modifications to ClusterLabs/Anvil by Alteeve
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
const buildGetFiles = require('./buildGetFiles');
|
|
|
|
|
|
|
|
const getFileDetail = buildGetFiles(
|
|
|
|
(request) =>
|
|
|
|
`SELECT
|
|
|
|
fil.file_uuid,
|
|
|
|
fil.file_name,
|
|
|
|
fil.file_size,
|
|
|
|
fil.file_type,
|
|
|
|
fil.file_md5sum,
|
|
|
|
fil_loc.file_location_uuid,
|
|
|
|
fil_loc.file_location_active,
|
|
|
|
anv.anvil_uuid,
|
|
|
|
anv.anvil_name,
|
|
|
|
anv.anvil_description
|
|
|
|
FROM files AS fil
|
|
|
|
JOIN file_locations AS fil_loc
|
|
|
|
ON fil.file_uuid = fil_loc.file_location_file_uuid
|
|
|
|
JOIN anvils AS anv
|
|
|
|
ON fil_loc.file_location_anvil_uuid = anv.anvil_uuid
|
|
|
|
WHERE fil.file_uuid = '${request.params.fileUUID}'
|
|
|
|
AND fil.file_type != 'DELETED';`,
|
|
|
|
);
|
|
|
|
|
|
|
|
module.exports = getFileDetail;
|