deb
This commit is contained in:
parent
ef811e4bf5
commit
26921c163b
1 changed files with 2 additions and 0 deletions
|
|
@ -131,9 +131,11 @@ export class StorageInterface extends EventEmitter {
|
||||||
}
|
}
|
||||||
|
|
||||||
private handleOp<T>(op: IStorageOperation): Promise<T> {
|
private handleOp<T>(op: IStorageOperation): Promise<T> {
|
||||||
|
console.log('handleOp', op)
|
||||||
this.checkConnected()
|
this.checkConnected()
|
||||||
return new Promise<T>((resolve, reject) => {
|
return new Promise<T>((resolve, reject) => {
|
||||||
const responseHandler = (response: OperationResponse<T>) => {
|
const responseHandler = (response: OperationResponse<T>) => {
|
||||||
|
console.log('responseHandler', response)
|
||||||
if (!response.success) {
|
if (!response.success) {
|
||||||
reject(new Error(response.error));
|
reject(new Error(response.error));
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue