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

Revert "Revert "feat(onboarding): adding disability digital helping category""

This reverts commit 78badf22.
parent 5a846ce8
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' }, { $push: { modules: { id: 'disability', name: 'Handicap' } } });
console.log('Updated : "Handicap" added to "onlineProcedures" document in "categories" collection');
};
export const down = async () => {
const db: Db = await getDb();
await db
.collection('categories')
.updateOne({ id: 'onlineProcedures' }, { $pull: { modules: { id: 'disability', name: 'Handicap' } } });
console.log('Downgraded : "Handicap" removed from "onlineProcedures" document in "categories" collection');
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment