@fdm-monster/server
Version:
FDM Monster is a bulk OctoPrint manager to set up, configure and monitor 3D printers. Our aim is to provide extremely optimized websocket performance and reliability.
41 lines (40 loc) • 1.26 kB
JavaScript
;
module.exports = {
async up (db, client) {
const session = client.startSession();
try {
await session.withTransaction(async ()=>{
const dbCollection = db.collection("printers");
await dbCollection.updateMany({}, {
$unset: {
settingsAppearance: 1
}
});
});
} catch (e) {
console.log("Error executing up migration", e);
throw e;
} finally{
await session.endSession();
}
},
async down (db, client) {
const session = client.startSession();
try {
await session.withTransaction(async ()=>{
const dbCollection = db.collection("printers");
await dbCollection.updateMany({}, {
$set: {
settingsAppearance: {}
}
});
});
} catch (e) {
console.log("Error executing down migration", e);
throw e;
} finally{
await session.endSession();
}
}
};
//# sourceMappingURL=20231111082521-printer-remove-settingsappearance.js.map