mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 12:53:09 +02:00
Update migrate.ts
This commit is contained in:
parent
ea06665c51
commit
ec2f709018
1 changed files with 4 additions and 4 deletions
|
@ -171,9 +171,9 @@ async function main() {
|
||||||
accessKey: file.metadata.storage.key,
|
accessKey: file.metadata.storage.key,
|
||||||
folderId: file.metadata.folderId ? file.metadata.folderId.toHexString() : null,
|
folderId: file.metadata.folderId ? file.metadata.folderId.toHexString() : null,
|
||||||
storedInternal: false,
|
storedInternal: false,
|
||||||
isRemote: false
|
isLink: false
|
||||||
});
|
});
|
||||||
} else if (!file.metadata.isRemote) {
|
} else if (!file.metadata.isLink) {
|
||||||
const [temp, clean] = await createTemp();
|
const [temp, clean] = await createTemp();
|
||||||
await new Promise(async (res, rej) => {
|
await new Promise(async (res, rej) => {
|
||||||
const bucket = await getDriveFileBucket();
|
const bucket = await getDriveFileBucket();
|
||||||
|
@ -203,7 +203,7 @@ async function main() {
|
||||||
accessKey: key,
|
accessKey: key,
|
||||||
folderId: file.metadata.folderId,
|
folderId: file.metadata.folderId,
|
||||||
storedInternal: true,
|
storedInternal: true,
|
||||||
isRemote: false
|
isLink: false
|
||||||
});
|
});
|
||||||
clean();
|
clean();
|
||||||
} else {
|
} else {
|
||||||
|
@ -222,7 +222,7 @@ async function main() {
|
||||||
accessKey: null,
|
accessKey: null,
|
||||||
folderId: file.metadata.folderId,
|
folderId: file.metadata.folderId,
|
||||||
storedInternal: false,
|
storedInternal: false,
|
||||||
isRemote: true
|
isLink: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue