apps/meteor/server/startup/migrations/v290.ts
Function up
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async up() {
// CE may have been EE first, so it may hold priorities which we want to remove
// IF env is not EE anymore, then just cleaning the collection is enough
// IF it's still EE, populate new collection with SLAs
const currentPriorities = await LivechatPriority.col.find().toArray();