MSP-5186 Simplify CreateUpdate
This commit is contained in:
1 parent
cb50a60156
commit
a047fb23dd
1 file changed
-5
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user