File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 11import { NextRequest , NextResponse } from "next/server"
2- import { makeAPIErrorResponse , makeUnauthenticatedAPIErrorResponse } from "@/common"
2+ import { env , makeAPIErrorResponse , makeUnauthenticatedAPIErrorResponse } from "@/common"
33import { session } from "@/composition"
4- import { env } from "@/common"
54
65const ErrorName = {
76 MAX_FILE_SIZE_EXCEEDED : "MaxFileSizeExceededError" ,
@@ -60,7 +59,7 @@ async function downloadFile(params: {
6059 let totalBytes = 0
6160 let didExceedMaxBytes = false
6261 const reader = response . body . getReader ( )
63- let chunks : Uint8Array [ ] = [ ]
62+ const chunks : Uint8Array [ ] = [ ]
6463 // eslint-disable-next-line no-constant-condition
6564 while ( true ) {
6665 // eslint-disable-next-line no-await-in-loop
You can’t perform that action at this time.
0 commit comments