mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-24 18:03:10 +02:00
refactor
This commit is contained in:
parent
449ea4b669
commit
bffdfea58a
1 changed files with 2 additions and 1 deletions
|
@ -12,11 +12,12 @@ import { genId } from '../../../misc/gen-id';
|
|||
import { createNotification } from '../../create-notification';
|
||||
import deleteReaction from './delete';
|
||||
import { isDuplicateKeyValueError } from '../../../misc/is-duplicate-key-value-error';
|
||||
import { NoteReaction } from '../../../models/entities/note-reaction';
|
||||
|
||||
export default async (user: User, note: Note, reaction?: string) => {
|
||||
reaction = await toDbReaction(reaction, user.host);
|
||||
|
||||
let record;
|
||||
let record: NoteReaction;
|
||||
|
||||
// Create reaction
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue