This commit is contained in:
2026-09-16 11:42:06 +05:30
parent bf5a9026fe
commit 25bc33975c
7 changed files with 482 additions and 3 deletions

View File

@@ -15,6 +15,7 @@ import (
"doormile/internal/assignment"
"doormile/internal/notify"
"doormile/internal/routing"
"doormile/internal/sms"
"doormile/internal/worker"
"doormile/middlewares"
"doormile/migrations"
@@ -92,6 +93,13 @@ func main() {
db.InitNATS(cfg)
notify.InitFCM()
// Install the SMS gateway. Until this call existed, sms.Register had no
// callers anywhere in the tree, so every customer verification code was
// written to this log and no text was ever sent — the single blocker on
// customer sign-in, and the reason bookings were being made in the app's
// offline mode and never reaching the console.
sms.Configure()
// 3. Run GORM migrations for logistics tables
if db.DB != nil {
err := migrations.Migrate(db.DB)