mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 14:43:07 +02:00
Fix bug
This commit is contained in:
parent
6c9d80d4e8
commit
c4441804e2
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ import { Emoji } from '../../../models/entities/emoji';
|
||||||
import { Poll } from '../../../models/entities/poll';
|
import { Poll } from '../../../models/entities/poll';
|
||||||
|
|
||||||
export default async function renderNote(note: Note, dive = true): Promise<any> {
|
export default async function renderNote(note: Note, dive = true): Promise<any> {
|
||||||
const promisedFiles: Promise<DriveFile[]> = note.fileIds.length > 1
|
const promisedFiles: Promise<DriveFile[]> = note.fileIds.length > 0
|
||||||
? DriveFiles.find({ id: In(note.fileIds) })
|
? DriveFiles.find({ id: In(note.fileIds) })
|
||||||
: Promise.resolve([]);
|
: Promise.resolve([]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue