From 3eaded1033cf73fd49ff07e37f62d1641484434e Mon Sep 17 00:00:00 2001 From: Zin Bo Thit Date: Mon, 3 Aug 2026 14:58:20 +0630 Subject: [PATCH] Queue OTP SMS messages for delivery --- app/models/otp_code.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/otp_code.rb b/app/models/otp_code.rb index 1cfa099..c729172 100644 --- a/app/models/otp_code.rb +++ b/app/models/otp_code.rb @@ -54,7 +54,8 @@ class OtpCode < ApplicationRecord sms = SmsMessage.create!( direction: "outbound", phone_number: normalized_phone, - message_body: "Your OTP code is: #{otp.code}. Valid for #{expiry_minutes} minutes. Do not share this code." + message_body: "Your OTP code is: #{otp.code}. Valid for #{expiry_minutes} minutes. Do not share this code.", + status: "queued" ) { otp: otp, sms: sms }