Chore: Migrate REST API - resetAvatar to Typescript (#3870)

This commit is contained in:
Reinaldo Neto 2022-03-10 09:37:54 -03:00 committed by GitHub
parent 5d28453201
commit c4124af73a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -43,6 +43,9 @@ export type UsersEndpoints = {
user: IUser; user: IUser;
}; };
}; };
'users.resetAvatar': {
POST: (params: { userId: string }) => {};
};
'users.getPreferences': { 'users.getPreferences': {
GET: (params: { userId: IUser['_id'] }) => { GET: (params: { userId: IUser['_id'] }) => {
preferences: INotificationPreferences; preferences: INotificationPreferences;

View File

@ -570,10 +570,8 @@ export const getAvatarSuggestion = (): Promise<IAvatarSuggestion> =>
// RC 0.51.0 // RC 0.51.0
sdk.methodCallWrapper('getAvatarSuggestion'); sdk.methodCallWrapper('getAvatarSuggestion');
export const resetAvatar = (userId: string): any => export const resetAvatar = (userId: string) =>
// RC 0.55.0 // RC 0.55.0
// TODO: missing definitions from server
// @ts-ignore
sdk.post('users.resetAvatar', { userId }); sdk.post('users.resetAvatar', { userId });
export const setAvatarFromService = ({ export const setAvatarFromService = ({