mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-26 17:07:58 +03:00
20 lines
286 B
JavaScript
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,
|
|
};
|