mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 10:21:14 -05:00
Update script to only update unassigned inbound
This commit is contained in:
@@ -157,7 +157,8 @@ class CustomDbScript(Command):
|
|||||||
service_id = services.id,
|
service_id = services.id,
|
||||||
updated_at = now()
|
updated_at = now()
|
||||||
FROM services
|
FROM services
|
||||||
WHERE services.sms_sender = inbound_numbers.number
|
WHERE services.sms_sender = inbound_numbers.number AND
|
||||||
|
inbound_numbers.service_id is null
|
||||||
"""
|
"""
|
||||||
result = db.session.execute(update)
|
result = db.session.execute(update)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
|||||||
Reference in New Issue
Block a user