mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-23 02:00:34 +01:00
Update utils.ts
This commit is contained in:
parent
0efe2e21d9
commit
a27d4be764
1 changed files with 4 additions and 0 deletions
|
@ -157,6 +157,10 @@ export const post = async (user: UserToken, params: misskey.Endpoints['notes/cre
|
|||
|
||||
const res = await api('notes/create', q, user);
|
||||
|
||||
if (res.status !== 200) {
|
||||
console.log(res);
|
||||
}
|
||||
|
||||
// FIXME: the return type should reflect this fact.
|
||||
return (res.body ? res.body.createdNote : null)!;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue