mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 02:25:30 -05:00
13 lines
327 B
JavaScript
13 lines
327 B
JavaScript
|
const { batchedUpdate } = require('../scripts/helpers/batchedUpdate')
|
||
|
exports.tags = ['server-ce', 'server-pro', 'saas']
|
||
|
|
||
|
exports.migrate = async () => {
|
||
|
await batchedUpdate(
|
||
|
'users',
|
||
|
{ 'features.templates': { $exists: true } },
|
||
|
{ $unset: { 'features.templates': true } }
|
||
|
)
|
||
|
}
|
||
|
|
||
|
exports.rollback = async () => {}
|