mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 22:17:30 -07:00
Update migrate.ts
This commit is contained in:
parent
e9e379de0a
commit
fe87a24026
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue