MSP-5186 Simplify CreateUpdate

This commit is contained in:
Синельник Тимур Романович committed 2025-04-02 12:55:09 +03:00
1 parent cb50a60156
commit a047fb23dd
1 file changed
-5
-5
View File
@@ -173,11 +173,6 @@ func (s Application) CreateUpdate(ctx context.Context, req domain.ApplicationCre
return result[0], nil
}
_, err := s.appRepo.GetApplicationById(ctx, req.Id)
if err != nil {
return nil, errors.WithMessage(err, "get application by id")
}
app, err := s.appRepo.UpdateApplication(ctx, req.Id, req.Name, req.Description)
if err != nil {
return nil, errors.WithMessage(err, "update application")