Skip to content

Commit

Permalink
update mux.video.assets.delete function
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanjha committed Jan 12, 2024
1 parent a9685ec commit 2b47172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/api/assets/[id].ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default async function assetHandler (req: NextApiRequest, res: NextApiRes
}

try {
await mux.video.assets.del(req.query.id as string);
await mux.video.assets.delete(req.query.id as string);
res.status(200).end(`Deleted ${req.query.id}`);
} catch (e) {
res.statusCode = 500;
Expand Down

0 comments on commit 2b47172

Please sign in to comment.