Files
zkldi_Tachi/database-seeds/scripts/remove-_id.js
T
2022-01-31 19:23:18 +00:00

20 lines
286 B
JavaScript

const { IterateCollections } = require("./util");
function RemoveUnderscoreID() {
IterateCollections((data) => {
for (const d of data) {
delete d._id;
}
return data;
});
}
if (require.main === module) {
RemoveUnderscoreID();
}
module.exports = {
RemoveUnderscoreID,
};