mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 14:03:42 -05:00
1697087425
[web] Cleanup `features.templates` GitOrigin-RevId: 7c9f7bc827700e4255a5ba8a46de70318afdaae4
12 lines
327 B
JavaScript
12 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 () => {}
|