Skip to content

Commit eedc196

Browse files
author
Rohit Kumar
committed
#
1 parent 9812155 commit eedc196

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

server/API/card/GenerateCard.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { ref, getDownloadURL, uploadBytesResumable } from "firebase/storage";
1111
const generatePDF = async (data) => {
1212
// Fetch
1313
const pdfRaw = await fetch(
14-
"https://files.aboutrohit.in/castmyvote/CMV_ID.pdf"
14+
"https://castmyvote.aboutrohit.in/web/CMV_ID.pdf"
1515
).then((res) => res.arrayBuffer());
1616

1717
const pdfDoc = await PDFDocument.load(pdfRaw);
@@ -25,11 +25,11 @@ const generatePDF = async (data) => {
2525
// Load Font
2626

2727
const codeBold = await fetch(
28-
"https://files.aboutrohit.in/castmyvote/fonts/code_bold.otf"
28+
"https://castmyvote.aboutrohit.in/web/fonts/code_bold.otf"
2929
).then((res) => res.arrayBuffer());
3030
const codeBoldFont = await pdfDoc.embedFont(codeBold);
3131
const codeLight = await fetch(
32-
"https://files.aboutrohit.in/castmyvote/fonts/code_light.otf"
32+
"https://castmyvote.aboutrohit.in/web/fonts/code_light.otf"
3333
).then((res) => res.arrayBuffer());
3434
const codeLightFont = await pdfDoc.embedFont(codeLight);
3535

server/database.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ import config from "./config.js";
44
const connectDB = async () => {
55
try {
66
//database Name
7-
const con = await mongoose.connect(config.MONGO_URL, {
8-
useNewUrlParser: true,
9-
useUnifiedTopology: true,
10-
});
7+
const con = await mongoose.connect(config.MONGO_URL);
118
console.log(`Database connected : ${con.connection.host}`);
129
} catch (error) {
1310
console.error(`Error: ${error.message}`);

server/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ app.get("/", (req, res) => {
3939

4040
app.listen(PORT, () => {
4141
ConnectDB()
42-
.then(() => console.log(`Server is Running at Port ✌`))
42+
.then(() => console.log(`Server is Running at Port ${PORT}✌`))
4343
.catch(() =>
4444
console.log(
4545
"Error in Connecting to Database. Please Check your Database Configurations"

0 commit comments

Comments
 (0)