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) 763 B
"use strict"; module.exports = { async up (db, client) { const session = client.startSession(); try { await session.withTransaction(async ()=>{ await db.collection("printers").update({}, { $unset: { sortIndex: 1 } }, { multi: true }); }); } finally{ await session.endSession(); } }, async down (db, client) { await db.collection("printers").update({}, { $set: { sortIndex: 0 } }, { multi: true }); } }; //# sourceMappingURL=20230427202911-printer-remove-sortindex.js.map