Skip to content
Snippets Groups Projects
Commit 452eb0a0 authored by Etienne LOUPIAS's avatar Etienne LOUPIAS
Browse files

feat(onboarding): remove disability digital helping category

parent 671e872f
No related branches found
No related tags found
1 merge request!404V3.1.0 (sans impression)
import { Db } from 'mongodb';
import { getDb } from '../migrations-utils/db';
export const up = async () => {
const db: Db = await getDb();
await db
.collection('categories')
.updateOne({ id: 'onlineProcedures' }, { $pull: { modules: { id: 'disability', name: 'Handicap' } } });
console.log('Updated : "Handicap" removed to "onlineProcedures" document in "categories" collection');
};
export const down = async () => {
const db: Db = await getDb();
await db
.collection('categories')
.updateOne({ id: 'onlineProcedures' }, { $push: { modules: { id: 'disability', name: 'Handicap' } } });
console.log('Downgraded : "Handicap" added from "onlineProcedures" document in "categories" collection');
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment