UNPKG

@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.

30 lines (29 loc) 750 B
"use strict"; module.exports = { async up (db, client) { const session = client.startSession(); try { await session.withTransaction(async ()=>{ await db.collection("users").update({}, { $unset: { name: 1 } }, { multi: true }); }); } finally{ await session.endSession(); } }, async down (db, client) { await db.collection("printers").update({}, { $set: { name: "default" } }, { multi: true }); } }; //# sourceMappingURL=20230716065316-user-remove-name.js.map