mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 04:33:50 +01:00
Update migrate.ts
This commit is contained in:
parent
e9e379de0a
commit
fe87a24026
@ -80,7 +80,7 @@ async function main() {
|
|||||||
const bucket = await getDriveFileBucket();
|
const bucket = await getDriveFileBucket();
|
||||||
const readable = bucket.openDownloadStream(file._id);
|
const readable = bucket.openDownloadStream(file._id);
|
||||||
const dest = fs.createWriteStream(temp);
|
const dest = fs.createWriteStream(temp);
|
||||||
readable.on('data', chunk => dest.write(chunk));
|
readable.pipe(dest);
|
||||||
readable.on('end', () => {
|
readable.on('end', () => {
|
||||||
dest.end();
|
dest.end();
|
||||||
res();
|
res();
|
||||||
|
Loading…
Reference in New Issue
Block a user