Update api.ts

This commit is contained in:
syuilo 2018-01-19 09:22:30 +09:00 committed by GitHub
parent b430d4f234
commit b14a395b50

View file

@ -40,7 +40,7 @@ export default (i, endpoint, data = {}): Promise<{ [x: string]: any }> => {
} else {
res.json().then(err => {
reject(err.error);
});
}, reject);
}
}).catch(reject);
});