pos login edited with phone number
This commit is contained in:
7
main.go
7
main.go
@@ -55,6 +55,13 @@ func main() {
|
||||
log.Fatal("POS schema migration failed:", err)
|
||||
}
|
||||
|
||||
// Shift windows for till staff. Additive — `app_users.shiftid` already
|
||||
// existed and pointed at the rider table, so an account with no shift is
|
||||
// simply unassigned rather than broken.
|
||||
if err := db.DB.AutoMigrate(&models.StaffShifts{}); err != nil {
|
||||
log.Fatal("staff shift schema migration failed:", err)
|
||||
}
|
||||
|
||||
f := facade.NewFacade(db.DB, db.CatalogueDB)
|
||||
|
||||
routes.RegisterRoutes(app, f)
|
||||
|
||||
Reference in New Issue
Block a user