From 5e32bccbdd3cb254bec6b0479a6b65c1230a140a Mon Sep 17 00:00:00 2001 From: Melissa Autumn Date: Tue, 23 Apr 2024 13:26:22 -0700 Subject: [PATCH] Revert last commit --- backend/src/appointment/database/repo.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/backend/src/appointment/database/repo.py b/backend/src/appointment/database/repo.py index 3ff304a60..28285f0e1 100644 --- a/backend/src/appointment/database/repo.py +++ b/backend/src/appointment/database/repo.py @@ -507,13 +507,6 @@ def create_calendar_schedule(db: Session, schedule: schemas.ScheduleBase): db.add(db_schedule) db.commit() db.refresh(db_schedule) - - # There's a bug on stage where onupdate isn't triggered on creates. - # So update the timestamp and commit it! - db_schedule.touch() - db.commit() - db.refresh(db_schedule) - return db_schedule