Skip to content

Commit

Permalink
Re-use session manager across requests (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brainicism authored Aug 31, 2024
1 parent 51afd7d commit 0f595e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ httpServer.listen({

console.log(`Started POT server on port ${PORT_NUMBER}`);

const sessionManager = new SessionManager();
httpServer.post("/get_pot", async (request, response) => {
const sessionManager = new SessionManager();
const visitorData = request.body.visitor_data as string;
const dataSyncId = request.body.data_sync_id as string;

Expand Down

0 comments on commit 0f595e3

Please sign in to comment.