Chore: Migrate REST API - resetAvatar to Typescript (#3870)
This commit is contained in:
parent
5d28453201
commit
c4124af73a
|
@ -43,6 +43,9 @@ export type UsersEndpoints = {
|
|||
user: IUser;
|
||||
};
|
||||
};
|
||||
'users.resetAvatar': {
|
||||
POST: (params: { userId: string }) => {};
|
||||
};
|
||||
'users.getPreferences': {
|
||||
GET: (params: { userId: IUser['_id'] }) => {
|
||||
preferences: INotificationPreferences;
|
||||
|
|
|
@ -570,10 +570,8 @@ export const getAvatarSuggestion = (): Promise<IAvatarSuggestion> =>
|
|||
// RC 0.51.0
|
||||
sdk.methodCallWrapper('getAvatarSuggestion');
|
||||
|
||||
export const resetAvatar = (userId: string): any =>
|
||||
export const resetAvatar = (userId: string) =>
|
||||
// RC 0.55.0
|
||||
// TODO: missing definitions from server
|
||||
// @ts-ignore
|
||||
sdk.post('users.resetAvatar', { userId });
|
||||
|
||||
export const setAvatarFromService = ({
|
||||
|
|
Loading…
Reference in New Issue