Fix error when deleting user (#18)

This commit is contained in:
Alex Weininger 2021-05-31 01:16:29 -05:00 committed by GitHub
parent 6d6602b872
commit 9da0e1ff61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

2
src/appwrite.d.ts vendored
View file

@ -305,7 +305,7 @@ export type Client = {
setSelfSigned: (value: boolean) => void;
};
export type UsersClient = {
deleteUser: (id: string) => Promise<any>;
delete: (id: string) => Promise<any>;
deleteSessions: (id: string) => Promise<any>;
create: (email: string, password: string, name?: string) => Promise<any>;
getLogs: (id: string) => Promise<Log[]>;

View file

@ -16,7 +16,7 @@ export class Users {
}
public async delete(userId: string): Promise<void> {
await AppwriteCall(this.users.deleteUser(userId), () => {
await AppwriteCall(this.users.delete(userId), () => {
window.showInformationMessage(`Deleted user with id: ${userId}.`);
});
}