fix: try something claude said to see if we can get session in the ws req

This commit is contained in:
Your Name 2025-02-02 17:55:13 -05:00
parent b8d3dbfa39
commit 91c1d30674

View file

@ -32,8 +32,6 @@ app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.json()); app.use(bodyParser.json());
app.use(express.static("public")); app.use(express.static("public"));
app.use(fileUpload()); app.use(fileUpload());
app.use("/", wsRouter);
app.use( app.use(
session({ session({
store: new SQLiteStore({ client: db, expired: { clear: true } }), store: new SQLiteStore({ client: db, expired: { clear: true } }),
@ -44,6 +42,8 @@ app.use(
}), }),
); );
app.use("/", wsRouter);
const vapidPublicKey = process.env.VAPID_PUBLIC_KEY const vapidPublicKey = process.env.VAPID_PUBLIC_KEY
const vapidPrivateKey = process.env.VAPID_PRIVATE_KEY const vapidPrivateKey = process.env.VAPID_PRIVATE_KEY