mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 19:03:39 -05:00
f9245b8c08
[web] Remove the token field from `projectInvites` collection GitOrigin-RevId: fe8395e1d1a0ba2daad600b7e3be657f40151a8e
15 lines
395 B
JavaScript
15 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 => {}
|