generated from eclass/ts-template-npm-libs
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(deep): agregamos la funcion editParticipant en Zoom
- Loading branch information
1 parent
f0ca94f
commit 758a9c1
Showing
5 changed files
with
97 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,20 @@ | ||
import { EditParticipantAttributes, FetchEndpoint } from '..' | ||
import { fetchEndpoint } from './lib/fetchEndpoint' | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-empty-function | ||
export default function () {} | ||
export default async function ( | ||
participant: EditParticipantAttributes, | ||
token: string | ||
): Promise<FetchEndpoint> { | ||
try { | ||
return await fetchEndpoint({ | ||
token, | ||
pathUrl: `/users/${participant.userId}`, | ||
method: 'PATCH', | ||
body: { ...participant }, | ||
parseJson: false | ||
}) | ||
} catch (error) { | ||
throw new Error(error) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters