fix: scope creator contents and bind uploads
This commit is contained in:
@@ -31,6 +31,9 @@ func (s *content) List(ctx context.Context, tenantID int64, filter *content_dto.
|
||||
if tenantID > 0 {
|
||||
q = q.Where(tbl.TenantID.Eq(tenantID))
|
||||
}
|
||||
if filter.AuthorID != nil && *filter.AuthorID > 0 {
|
||||
q = q.Where(tbl.UserID.Eq(*filter.AuthorID))
|
||||
}
|
||||
if filter.Genre != nil && *filter.Genre != "" {
|
||||
q = q.Where(tbl.Genre.Eq(*filter.Genre))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user