chore: some debugging stuff

This commit is contained in:
DIBSTER committed 2024-09-10 16:21:31 -04:00
1 parent 962cc58575
commit 1be98644b1
1 file changed
+4
+4
View File
@@ -2,10 +2,14 @@ const { stripExt } = require('./utils.js');
async function getFileName(file, data) {
// Extract the file name without extension
console.log(file);
console.log(data);
const fileNameWithoutExt = stripExt(file);
// Validate if the file name matches any of the target.RECORD_TYPE values
const recordTypes = Object.keys(data.target);
if (!recordTypes.includes(fileNameWithoutExt.toUpperCase())) {
return false;
} else {