Skip to content

Commit

Permalink
Give media library a path, see #73
Browse files Browse the repository at this point in the history
  • Loading branch information
benmerckx committed May 24, 2022
1 parent 74a57d2 commit 0b4ee31
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 0 deletions.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions packages/backend/src/Backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ export class Backend<T extends Workspaces = Workspaces> implements Hub<T> {
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)
Expand Down

0 comments on commit 0b4ee31

Please sign in to comment.