fix: missing await

This commit is contained in:
Derrick Hammer 2024-03-19 09:12:21 -04:00
parent 3502732e76
commit 2dccaca132
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ export const accountProvider: SdkProvider = {
params: UpdateParams<AccountParams>,
): Promise<UpdateResponse<AccountData>> {
if (params.variables.email && params.variables.password) {
const ret = accountProvider.sdk?.account().updateEmail(params.variables.email, params.variables.password);
const ret = await accountProvider.sdk?.account().updateEmail(params.variables.email, params.variables.password);
if (ret) {
if (ret instanceof Error) {