Skip to content

Commit

Permalink
fix(ipos): /pinFile flat level
Browse files Browse the repository at this point in the history
  • Loading branch information
hassnian committed Jul 9, 2024
1 parent 085b982 commit 2521c67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/ipos/src/routes/pinning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ app.post('/pinFile', vValidator('form', pinFileRequestSchema), async (c) => {
const body = (await c.req.parseBody({ all: true })) as PinFIle

const files: File[] = [[(body as PinSingleFile)[fileKey]]]
.flat()
.flat(2)
.filter(Boolean)

const helia = await createNode(c)
Expand Down

0 comments on commit 2521c67

Please sign in to comment.