mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-27 08:10:24 +01:00
chore: remove as type
This commit is contained in:
parent
82d70282e5
commit
785e80fefd
1 changed files with 2 additions and 2 deletions
|
@ -111,9 +111,9 @@ export class DeleteAccountProcessorService {
|
|||
cursor = reactions.at(-1)?.id ?? null;
|
||||
|
||||
for (const reaction of reactions) {
|
||||
const note = await this.notesRepository.findOneBy({ id: reaction.noteId }) as MiNote;
|
||||
const note = await this.notesRepository.findOneBy({ id: reaction.noteId });
|
||||
|
||||
await this.reactionService.delete(user, note);
|
||||
if (note) await this.reactionService.delete(user, note);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue