Update Partner ID

This commit is contained in:
aditya.siregar
2024-07-30 18:15:47 +07:00
parent 2de5669167
commit 065cfc4df6
2 changed files with 10 additions and 8 deletions
+1 -6
View File
@@ -166,12 +166,7 @@ func (h *Handler) GetAll(c *gin.Context) {
}
if !ctx.IsSuperAdmin() {
response.ErrorWrapper(c, errors.ErrorUnauthorized)
return
}
users, total, err := h.service.GetAll(ctx, req.ToEntity())
users, total, err := h.service.GetAll(ctx, req.ToEntity(ctx))
if err != nil {
response.ErrorWrapper(c, err)
return