feat: add incrment of views
This commit is contained in:
@@ -165,6 +165,7 @@ func (ctl *posts) Play(ctx fiber.Ctx, id int64, user *model.Users) (*PlayUrl, er
|
||||
log.WithError(err).Errorf("GetByID err: %v", err)
|
||||
return nil, err
|
||||
}
|
||||
go models.Posts.IncrViewCount(ctx.Context(), post.ID)
|
||||
|
||||
preview := false
|
||||
bought, err := models.Users.HasBought(ctx.Context(), user.ID, post.ID)
|
||||
|
||||
Reference in New Issue
Block a user