mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-26 04:32:50 +00:00
Compare commits
1 Commits
main
...
v4.14.1-fi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c2e53a0179 |
|
|
@ -108,18 +108,21 @@ async function appSplitMigration(teamId: string) {
|
|||
const obj = appMap.get(folder._id)!;
|
||||
const newParentId = obj?.parentId ? appMap.get(obj!.parentId)?.newId : null;
|
||||
|
||||
const oldRps = RPMap.get(folder._id)!;
|
||||
rpOps.push(
|
||||
...oldRps.map((oldRp) => ({
|
||||
insertOne: {
|
||||
document: {
|
||||
...oldRp,
|
||||
resourceId: obj.newId!,
|
||||
_id: undefined
|
||||
const oldRps = RPMap.get(folder._id);
|
||||
|
||||
if (oldRps) {
|
||||
rpOps.push(
|
||||
...oldRps.map((oldRp) => ({
|
||||
insertOne: {
|
||||
document: {
|
||||
...oldRp,
|
||||
resourceId: obj.newId!,
|
||||
_id: undefined
|
||||
}
|
||||
}
|
||||
}
|
||||
}))
|
||||
);
|
||||
}))
|
||||
);
|
||||
}
|
||||
|
||||
if (!newParentId) {
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Reference in New Issue