mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-24 00:39:32 +09:00
Update migrate.ts
This commit is contained in:
parent
8bec4042fc
commit
38ffbe95e9
@ -80,7 +80,7 @@ async function main() {
|
||||
const bucket = await getDriveFileBucket();
|
||||
const readable = bucket.openDownloadStream(file._id);
|
||||
const dest = fs.createWriteStream(temp);
|
||||
readable.on('data', chunk => dest.write(chunk));
|
||||
readable.pipe(dest);
|
||||
readable.on('end', () => {
|
||||
dest.end();
|
||||
res();
|
||||
|
Loading…
Reference in New Issue
Block a user