update license

This commit is contained in:
aditya.siregar
2024-07-30 00:55:20 +07:00
parent 5b286fd44c
commit 2d1c450f65
7 changed files with 44 additions and 10 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ func (s *LicenseService) GetByID(ctx context.Context, id string) (*entity.Licens
return licenseDB.ToLicense(), nil
}
func (s *LicenseService) GetAll(ctx context.Context, limit, offset int, status string) ([]*entity.License, int64, error) {
func (s *LicenseService) GetAll(ctx context.Context, limit, offset int, status string) ([]*entity.LicenseGetAll, int64, error) {
licenses, total, err := s.repo.GetAll(ctx, limit, offset, status)
if err != nil {
logger.ContextLogger(ctx).Error("error when getting all licenses", zap.Error(err))