*Ensure we don't store an error inside the data property

This commit is contained in:
Derrick Hammer 2022-09-22 11:04:10 -04:00
parent 40cf1ff9e9
commit 7a21a5069c
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 1 deletions

View File

@ -66,9 +66,11 @@ export default class WisdomRpcQuery extends RpcQueryBase {
}
response = { error: ERR_MAX_TRIES_HIT };
} else {
response = { data: response };
}
this.resolve({ data: response });
this.resolve(response);
break;
}
}