summary refs log tree commit diff
path: root/util/src/util/cdn.ts
diff options
context:
space:
mode:
Diffstat (limited to 'util/src/util/cdn.ts')
-rw-r--r--util/src/util/cdn.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/src/util/cdn.ts b/util/src/util/cdn.ts

index 2de23f5d..4dd0078a 100644 --- a/util/src/util/cdn.ts +++ b/util/src/util/cdn.ts
@@ -26,7 +26,7 @@ export async function uploadFile(path: string, file: Express.Multer.File) { } export async function handleFile(path: string, body?: string): Promise<string | undefined> { - if (!body || !body.startsWith("data:")) return body; + if (!body || !body.startsWith("data:")) return undefined; try { const mimetype = body.split(":")[1].split(";")[0]; const buffer = Buffer.from(body.split(",")[1], "base64");