updates
This commit is contained in:
8
main.go
8
main.go
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user