Skip to content

Commit

Permalink
Format code with Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 10, 2024
1 parent ede575a commit de73f65
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 de73f65

Please sign in to comment.