fix: issues
This commit is contained in:
@@ -44,14 +44,9 @@ func (c *Controller) Show(ctx fiber.Ctx) error {
|
||||
|
||||
// Audio
|
||||
func (c *Controller) Video(ctx fiber.Ctx) error {
|
||||
mediaId := ToInt64(ctx.Params("media"))
|
||||
tenantId := ToInt64(ctx.Locals("tenantId"))
|
||||
userId := ToInt64(ctx.Locals("userId"))
|
||||
// mediaId := ToInt64(ctx.Params("media"))
|
||||
// tenantId := ToInt64(ctx.Locals("tenantId"))
|
||||
// userId := ToInt64(ctx.Locals("userId"))
|
||||
|
||||
item, err := c.svc.GetVideo(ctx.Context(), tenantId, userId, mediaId)
|
||||
if err != nil {
|
||||
return ctx.Status(fiber.StatusInternalServerError).JSON(errorx.InternalError)
|
||||
}
|
||||
|
||||
return ctx.JSON(item)
|
||||
return ctx.JSON(nil)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user