Add some tests and fix
This commit is contained in:
@ -26,7 +26,7 @@ export default async (user: IUser, note: INote, reaction: string) => new Promise
|
||||
} catch (e) {
|
||||
// duplicate key error
|
||||
if (e.code === 11000) {
|
||||
return res(null);
|
||||
return rej('already reacted');
|
||||
}
|
||||
|
||||
console.error(e);
|
||||
|
Reference in New Issue
Block a user