Skip to content

Commit

Permalink
Merge branch 'feat/ticket-scanning-page' of https://github.com/UoaWDC…
Browse files Browse the repository at this point in the history
…C/auis-portal into feat/ticket-scanning-page
  • Loading branch information
gmat224 committed Dec 10, 2024
2 parents dcd4eb6 + de73f65 commit d174e5a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
4 changes: 1 addition & 3 deletions api/controller/userController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ import { getUser } from "supertokens-node";
import { insertUserBySuperToken } from "../gateway/userGateway";

export const updateUserTicketInfo = asyncHandler(

async (req: Request, res: Response) => {
console.log(process.env.DOMAIN_DB)
console.log(process.env.DOMAIN_DB);
try {

const { name, email, phoneNumber, ticketId, answers } = req.body;

if (!name || !email || !phoneNumber || !ticketId || !answers) {
Expand Down
9 changes: 4 additions & 5 deletions api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@ const app = express();
config();

// DELET ONC WE HAVE SUPEROTKEN THING
let domainSuperToken = process.env.DOMAIN_DB
if (domainSuperToken)
{domainSuperToken = domainSuperToken.substring(0, domainSuperToken.length - 4);
domainSuperToken = domainSuperToken + process.env.SUPERTOKENS_PORT
let domainSuperToken = process.env.DOMAIN_DB;
if (domainSuperToken) {
domainSuperToken = domainSuperToken.substring(0, domainSuperToken.length - 4);
domainSuperToken = domainSuperToken + process.env.SUPERTOKENS_PORT;
}


supertokens.init({
// debug: true,
framework: "express",
Expand Down

0 comments on commit d174e5a

Please sign in to comment.