mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-01 04:08:50 -04:00
Normalize outbound SMS sender number in one off notifications
This commit is contained in:
@@ -367,6 +367,9 @@ class ServiceSmsSender(db.Model):
|
||||
created_at = db.Column(db.DateTime, default=datetime.datetime.utcnow, nullable=False)
|
||||
updated_at = db.Column(db.DateTime, nullable=True, onupdate=datetime.datetime.utcnow)
|
||||
|
||||
def get_reply_to_text(self):
|
||||
return try_validate_and_format_phone_number(self.sms_sender)
|
||||
|
||||
def serialize(self):
|
||||
return {
|
||||
"id": str(self.id),
|
||||
|
||||
Reference in New Issue
Block a user