-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
convert single quotes into double quotes
- Loading branch information
1 parent
c7bb956
commit 1a27161
Showing
74 changed files
with
1,331 additions
and
1,334 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import { v2 as cloudinary } from "cloudinary"; | ||
import { v2 as cloudinary } from "cloudinary" | ||
|
||
export function cloudinaryConnect () { | ||
try { | ||
cloudinary.config({ | ||
cloud_name: process.env.CLOUDINARY_CLOUD_NAME, | ||
api_key: process.env.CLOUDINARY_API_KEY, | ||
api_secret: process.env.CLOUDINARY_API_SECRET, | ||
}); | ||
}) | ||
} catch (error) { | ||
console.log("Error in connecting to cloudinary: " + error); | ||
console.log("Error in connecting to cloudinary: " + error) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import mongoose from "mongoose"; | ||
import mongoose from "mongoose" | ||
|
||
const connectDB = async () => { | ||
try { | ||
await mongoose.connect(process.env.MONGODB_URL); | ||
console.log("\n MongoDB connected"); | ||
await mongoose.connect(process.env.MONGODB_URL) | ||
console.log("\n MongoDB connected") | ||
} catch (error) { | ||
console.log("MongoDB connection FAILED", error); | ||
process.exit(1); | ||
console.log("MongoDB connection FAILED", error) | ||
process.exit(1) | ||
} | ||
}; | ||
} | ||
|
||
export default connectDB; | ||
export default connectDB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import Razorpay from "razorpay"; | ||
import Razorpay from "razorpay" | ||
|
||
const instance = new Razorpay({ | ||
key_id: process.env.RAZORPAY_KEY_ID, | ||
key_secret: process.env.RAZORPAY_KEY_SECRET, | ||
}); | ||
}) | ||
|
||
export default instance; | ||
export default instance |
Oops, something went wrong.