fix filter_bys

This commit is contained in:
Kenneth Kehl
2024-12-19 11:10:03 -08:00
parent 659169366c
commit 3388371428
35 changed files with 245 additions and 140 deletions

View File

@@ -38,7 +38,9 @@ def test_save_service_inbound_api(sample_service):
versioned = (
db.session.execute(
select(ServiceInboundApi.get_history_model()).filter_by(id=inbound_api.id)
select(ServiceInboundApi.get_history_model()).where(
ServiceInboundApi.get_history_model().id == inbound_api.id
)
)
.scalars()
.one()
@@ -95,8 +97,8 @@ def test_update_service_inbound_api(sample_service):
versioned_results = (
db.session.execute(
select(ServiceInboundApi.get_history_model()).filter_by(
id=saved_inbound_api.id
select(ServiceInboundApi.get_history_model()).where(
ServiceInboundApi.get_history_model().id == saved_inbound_api.id
)
)
.scalars()