mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-23 10:27:28 -07:00
Update api.ts
This commit is contained in:
parent
b430d4f234
commit
b14a395b50
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