2024-11-15 12:33:23: merge [master:8e2cec1f118c6f4d00fa843811441031b8c0b843];

This commit is contained in:
txix committed 2024-11-15 12:33:23 +03:00
1 parent 02df1a6546
commit c11d09b992
6 files changed
+99 -85

No files matched your search

+2
View File
@@ -74,6 +74,8 @@ func (s Service) GetByDomainId(ctx context.Context, domainId int) ([]domain.Serv
}
func (s Service) CreateUpdate(ctx context.Context, req domain.ServiceCreateUpdateRequest) (*domain.Service, error) {
req.DomainId = 1 // temporary use only 1 domain, soon domain entity will be removed
existed, err := s.serviceRep.GetServiceByNameAndDomainId(ctx, req.Name, req.DomainId)
switch {
case errors.Is(err, domain.ErrServiceNotFound):