add Prefix for each shortname and talkgroup

This commit is contained in:
Luke Berndt
2024-09-09 22:05:32 -04:00
parent 4d13c86c3e
commit 470447f93c

View File

@@ -136,7 +136,7 @@ exports.upload = async function (req, res, next) {
res.status(200).end();
const local_path = `/${shortName}/${time.getFullYear()}/${time.getMonth() + 1}/${time.getDate()}/`;
const object_key = `media/${shortName}-${talkgroupNum}-${startTime}${path.extname(req.file.originalname)}`;
const object_key = `media/${shortName}/${talkgroupNum}/${shortName}-${talkgroupNum}-${startTime}${path.extname(req.file.originalname)}`;
const url = `${s3_public_url}/${object_key}`;
const call = new Call({