File tree Expand file tree Collapse file tree
packages/backend/src/api/endpoints Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import runtime from '../../runtime' ;
12import { joinPaths } from '../../util/path' ;
23import type { Organization , OrganizationInvitation , OrganizationMembership } from '../resources' ;
34import type { OrganizationMembershipRole } from '../resources/Enums' ;
@@ -124,7 +125,7 @@ export class OrganizationAPI extends AbstractAPI {
124125 public async updateOrganizationLogo ( organizationId : string , params : UpdateLogoParams ) {
125126 this . requireId ( organizationId ) ;
126127
127- const formData = new FormData ( ) ;
128+ const formData = new runtime . FormData ( ) ;
128129 formData . append ( 'file' , params ?. file ) ;
129130 formData . append ( 'uploader_user_id' , params ?. uploaderUserId ) ;
130131
Original file line number Diff line number Diff line change 11import type { OAuthProvider } from '@clerk/types' ;
22
3+ import runtime from '../../runtime' ;
34import { joinPaths } from '../../util/path' ;
45import type { OauthAccessToken , OrganizationMembership , User } from '../resources' ;
56import { AbstractAPI } from './AbstractApi' ;
@@ -129,7 +130,7 @@ export class UserAPI extends AbstractAPI {
129130 public async updateUserProfileImage ( userId : string , params : { file : Blob | File } ) {
130131 this . requireId ( userId ) ;
131132
132- const formData = new FormData ( ) ;
133+ const formData = new runtime . FormData ( ) ;
133134 formData . append ( 'file' , params ?. file ) ;
134135
135136 return this . request < User > ( {
You can’t perform that action at this time.
0 commit comments