mirror of
https://github.com/hotomoe/hotomoe
synced 2024-12-02 16:58:11 +09:00
oops
This commit is contained in:
parent
5fb08b0ba1
commit
61dd1fd718
@ -4,7 +4,7 @@ const { default: App } = require('../../../built/models/app');
|
|||||||
const { default: zip } = require('@prezzemolo/zip')
|
const { default: zip } = require('@prezzemolo/zip')
|
||||||
|
|
||||||
const migrate = async (app) => {
|
const migrate = async (app) => {
|
||||||
const result = await User.update(app._id, {
|
const result = await App.update(app._id, {
|
||||||
$set: {
|
$set: {
|
||||||
'name_id': app.name_id.replace(/\-/g, '_'),
|
'name_id': app.name_id.replace(/\-/g, '_'),
|
||||||
'name_id_lower': app.name_id_lower.replace(/\-/g, '_')
|
'name_id_lower': app.name_id_lower.replace(/\-/g, '_')
|
||||||
|
Loading…
Reference in New Issue
Block a user