fix: change version name

This commit is contained in:
2025-04-03 21:23:17 +08:00
parent d97053a443
commit 4aaf791801
7 changed files with 57 additions and 10 deletions

View File

@@ -0,0 +1,13 @@
import { app } from '@/app.ts';
import { AppModel, AppListModel } from '../module/index.ts';
export const mvAppFromUserAToUserB = async (userA: string, userB: string) => {
const appList = await AppModel.findAll({
where: {
user: userA,
},
});
for (const app of appList) {
app.user = userB;
await app.save();
}
};