mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-27 04:33:00 +00:00
parent
e07210524f
commit
1344ffa67d
1 changed files with 4 additions and 0 deletions
|
@ -43,6 +43,10 @@ export default (params: any, user: ILocalUser) => new Promise(async (res, rej) =
|
||||||
return rej('note not found');
|
return rej('note not found');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (note.deletedAt != null) {
|
||||||
|
return rej('this not is already deleted');
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await create(user, note, ps.reaction);
|
await create(user, note, ps.reaction);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Reference in a new issue