File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
apps/sim/app/api/tools/sharepoint/upload Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import { generateRequestId } from '@/lib/core/utils/request'
77import { RawFileInputArraySchema } from '@/lib/uploads/utils/file-schemas'
88import { processFilesToUserFiles } from '@/lib/uploads/utils/file-utils'
99import { downloadFileFromStorage } from '@/lib/uploads/utils/file-utils.server'
10+ import type { MicrosoftGraphDriveItem } from '@/tools/onedrive/types'
1011
1112export const dynamic = 'force-dynamic'
1213
@@ -232,14 +233,7 @@ export async function POST(request: NextRequest) {
232233 )
233234 }
234235
235- const uploadData = ( await uploadResponse . json ( ) ) as {
236- id : string
237- name : string
238- webUrl : string
239- size : number
240- createdDateTime : string
241- lastModifiedDateTime : string
242- }
236+ const uploadData = ( await uploadResponse . json ( ) ) as MicrosoftGraphDriveItem
243237 logger . info ( `[${ requestId } ] File uploaded successfully: ${ fileName } ` )
244238
245239 uploadedFiles . push ( {
You can’t perform that action at this time.
0 commit comments