chore: fixing

This commit is contained in:
DIBSTER
2024-09-20 23:58:42 -04:00
committed by GitHub
parent 417daaf03a
commit 9f87e07da5
+2 -2
View File
@@ -7,7 +7,7 @@ function getFileName(file, data) {
// Validate if the file name matches any of the target.RECORD_TYPE values
const recordTypes = Object.values(data.target);
return recordTypes[0].name == fileNameWithoutExt.toLowerCase();
return recordTypes[0].name == fileNameWithoutExt.toLowerCase().split("/")[1];
}
module.exports = getFileName;
module.exports = getFileName;