mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 15:46:07 -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,
|
||||
updated_at = now()
|
||||
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)
|
||||
db.session.commit()
|
||||
|
||||
Reference in New Issue
Block a user