"use strict";
module.exports = {
    async up (db, client) {
        const session = client.startSession();
        try {
            await session.withTransaction(async ()=>{
                const dbCollection = db.collection("printers");
                await dbCollection.updateMany({}, {
                    $set: {
                        fileList: []
                    }
                });
            });
        } 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: {
                        fileList: {}
                    }
                });
            });
        } catch (e) {
            console.log("Error executing down migration", e);
            throw e;
        } finally{
            await session.endSession();
        }
    }
};

//# sourceMappingURL=20231202183902-printer-files-simpler.js.map