mirror of
https://github.com/dfpc-coe/CloudTAK.git
synced 2025-12-22 13:47:22 +00:00
Update api/routes/icons.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -317,8 +317,9 @@ export default async function router(schema: Schema, config: Config) {
|
||||
data: req.body.data,
|
||||
});
|
||||
|
||||
const name = path.parse(req.body.name).name;
|
||||
const format = path.parse(req.body.name).ext.toLowerCase();
|
||||
const parsedName = path.parse(req.body.name);
|
||||
const name = parsedName.name;
|
||||
const format = parsedName.ext.toLowerCase();
|
||||
|
||||
const icon = await config.models.Icon.generate({
|
||||
...req.body,
|
||||
|
||||
Reference in New Issue
Block a user