fix: missing await
This commit is contained in:
parent
3502732e76
commit
2dccaca132
|
@ -20,7 +20,7 @@ export const accountProvider: SdkProvider = {
|
||||||
params: UpdateParams<AccountParams>,
|
params: UpdateParams<AccountParams>,
|
||||||
): Promise<UpdateResponse<AccountData>> {
|
): Promise<UpdateResponse<AccountData>> {
|
||||||
if (params.variables.email && params.variables.password) {
|
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) {
|
||||||
if (ret instanceof Error) {
|
if (ret instanceof Error) {
|
||||||
|
|
Loading…
Reference in New Issue