mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 09:09:36 +02:00
[web] Start rendering domains for group with domain capture GitOrigin-RevId: b7b007350c5757a78923d9efb259389de23b93c9
32 lines
525 B
JavaScript
32 lines
525 B
JavaScript
/* eslint-disable no-unused-vars */
|
|
|
|
import Helpers from './lib/helpers.mjs'
|
|
|
|
const tags = ['saas']
|
|
|
|
const indexes = [
|
|
{
|
|
key: { groupId: 1 },
|
|
name: 'groupId_1',
|
|
},
|
|
]
|
|
|
|
const migrate = async client => {
|
|
const { db } = client
|
|
|
|
await Helpers.addIndexesToCollection(db.domainVerifications, indexes)
|
|
}
|
|
|
|
const rollback = async client => {
|
|
const { db } = client
|
|
await Helpers.dropIndexesFromCollection(db.domainVerifications, [
|
|
{ name: 'groupId_1' },
|
|
])
|
|
}
|
|
|
|
export default {
|
|
tags,
|
|
migrate,
|
|
rollback,
|
|
}
|