mirror of
https://github.com/tiennm99/is-a-good-dev.git
synced 2026-10-13 02:14:43 +00:00
chore: some debugging stuff
This commit is contained in:
1 parent
962cc58575
commit
1be98644b1
1 file changed
+4
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user