Skip to content

Commit c5ecd7a

Browse files
committed
fix(buffer): forward validated mediaType from routes into the media resolver
1 parent a1ac9a9 commit c5ecd7a

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

apps/sim/app/api/tools/buffer/create-post/route.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export const POST = withRouteHandler(async (request: NextRequest) => {
5656
dueAt: body.dueAt,
5757
saveToDraft: body.saveToDraft,
5858
media: body.media,
59+
mediaType: body.mediaType,
5960
mediaAltText: body.mediaAltText,
6061
userId: authResult.userId,
6162
requestId,

apps/sim/app/api/tools/buffer/edit-post/route.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export const POST = withRouteHandler(async (request: NextRequest) => {
5656
dueAt: body.dueAt,
5757
saveToDraft: body.saveToDraft,
5858
media: body.media,
59+
mediaType: body.mediaType,
5960
mediaAltText: body.mediaAltText,
6061
userId: authResult.userId,
6162
requestId,

0 commit comments

Comments
 (0)