mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-24 19:56:43 -06:00
Update api.ts
This commit is contained in:
parent
6b9f6c6e3b
commit
d8f8730a74
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ export default (i, endpoint, data = {}): Promise<{ [x: string]: any }> => {
|
|||
} else {
|
||||
res.json().then(err => {
|
||||
reject(err.error);
|
||||
});
|
||||
}, reject);
|
||||
}
|
||||
}).catch(reject);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue