From 0b4ee31d676f1bbfa120435b1d1bd90e6b227d6f Mon Sep 17 00:00:00 2001 From: Ben Merckx Date: Tue, 24 May 2022 14:36:19 +0200 Subject: [PATCH] Give media library a path, see #73 --- apps/web/content/media/{index.json => media.json} | 0 apps/web/content/media/{ => media}/screenshot.png.json | 0 packages/backend/src/Backend.ts | 1 + 3 files changed, 1 insertion(+) rename apps/web/content/media/{index.json => media.json} (100%) rename apps/web/content/media/{ => media}/screenshot.png.json (100%) diff --git a/apps/web/content/media/index.json b/apps/web/content/media/media.json similarity index 100% rename from apps/web/content/media/index.json rename to apps/web/content/media/media.json diff --git a/apps/web/content/media/screenshot.png.json b/apps/web/content/media/media/screenshot.png.json similarity index 100% rename from apps/web/content/media/screenshot.png.json rename to apps/web/content/media/media/screenshot.png.json diff --git a/packages/backend/src/Backend.ts b/packages/backend/src/Backend.ts index e1b6a8d6..cbcb42ca 100644 --- a/packages/backend/src/Backend.ts +++ b/packages/backend/src/Backend.ts @@ -190,6 +190,7 @@ export class Backend implements Hub { if (!parent) throw createError(400, `Parent not found: ${url}`) return parent.id }) + console.log(parents) const parent = parents[parents.length - 1] if (!parent) throw createError(400, `Parent not found: "${file.path}"`) const location = await media.upload(workspace as string, file)