Send and receive SMS messages using your Android phone programmatically via a simple HTTP API
Don't swallow duplicate key errror on phone update
Acho Arnold8d3a3cdea27b
diff --git a/api/pkg/repositories/gorm_phone_repository.go b/api/pkg/repositories/gorm_phone_repository.goindex 9d37c731..86c0bfef 100644--- a/api/pkg/repositories/gorm_phone_repository.go+++ b/api/pkg/repositories/gorm_phone_repository.go@@ -81,7 +81,7 @@ func (repository *gormPhoneRepository) Save(ctx context.Context, phone *entitiesWithContext(ctx).Save(phone).Error- if err != nil && !errors.Is(err, gorm.ErrDuplicatedKey) {+ if err != nil {msg := fmt.Sprintf("cannot save phone with ID [%s]", phone.ID)return repository.tracer.WrapErrorSpan(span, stacktrace.Propagate(err, msg))}