mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 22:53:31 -05:00
16 lines
395 B
JavaScript
16 lines
395 B
JavaScript
|
/* eslint-disable no-unused-vars */
|
||
|
|
||
|
const Helpers = require('./lib/helpers')
|
||
|
|
||
|
exports.tags = ['server-ce', 'server-pro', 'saas']
|
||
|
|
||
|
exports.migrate = async client => {
|
||
|
const { db } = client
|
||
|
await Helpers.assertDependency(
|
||
|
'20240524135408_add_token_hmac_project_invite_tokens'
|
||
|
)
|
||
|
await db.projectInvites.updateMany({}, { $unset: { token: 1 } })
|
||
|
}
|
||
|
|
||
|
exports.rollback = async client => {}
|