chore: send admin email on adding waitlist entry

This commit is contained in:
talksik
2026-03-29 09:43:21 -07:00
parent be966d78a8
commit 3d71dbaed0
7 changed files with 201 additions and 16 deletions
+2 -2
View File
@@ -76,7 +76,7 @@ func main() {
GoogleServiceAccountEmail: utils.MustGetEnv("GOOGLE_SERVICE_ACCOUNT_EMAIL"),
BucketName: gcsBucket,
})
waitlistSvc := waitlist.NewService(db.Pool())
waitlistSvc := waitlist.NewService(db.Pool(), aeroSvc)
// Initialize handler
h := handler.NewHandler(authSvc, humanSvc, networkSvc, particleSvc, depotSvc, waitlistSvc)
@@ -135,7 +135,7 @@ func main() {
mux.Handle("POST /waitlist/invite", withAuth(h.InviteWaitlistEntrant))
// Apply middleware
// nil allows all origins (required for electron app)
// nil allows all origins (required for electron app)
muxWithCors := middleware.CORS(nil)(mux)
addr := fmt.Sprintf("0.0.0.0:%s", port)