MongoDb Backend Problem(multer-gridfs-storage)
my mutler-gridfs-storage is not working properly,it shows cannot read properties of undefined in the console f._id
MongoDb Backend Problem(multer-gridfs-storage)
my mutler-gridfs-storage is not working properly,it shows cannot read properties of undefined in the console f._id
MongoDb Backend Problem(multer-gridfs-storage)
my mutler-gridfs-storage is not working properly,it shows cannot read properties of undefined in the console f._id
MongoDb Backend Problem(multer-gridfs-storage)
my mutler-gridfs-storage is not working properly,it shows cannot read properties of undefined in the console f._id
Express is showing an error in the PK function. Is express unable to pass strings without inadvertently converting them to objects?
case ‘payment_intent.failed’: orderId = await fetchOrderIdFromCustomerId(customerId); if (orderId) { const order = await db.Order.findByPk(String(orderId)); if (order) { console.log(`Order found for ID: ${orderId}`); // Handle the failed payment for the order } else { console.log(`Order not found for ID: ${orderId}`); } } else { console.log(‘Order ID not found for customer ID’); } break; String is logged […]
I try to use resHelper library in my express js routes, in index.ts its work, but when i try to apply it to my routes its doesnt work
const express = require(‘express’); import routes from ‘./src/routes/index’; const resHelper = require(‘reshelper’); const app = express(); app.use(resHelper); // API Routes app.use(‘/destination’, routes); app.get(‘/’, (req : any, res: any, next : any) => { return res.data({foo: ‘bar’}); }) // Setup PORT const PORT = process.env.PORT || 3000; app.listen(PORT, () => { console.log(`Server is running on port […]
database returns error 400 whenever I want to insert data into it
so this is my code, whenever I gonna insert data into my database it returns error 400 I don’t know the reason, I did other crud operations and it was fine.
How to import local variable to layouts in express js project?
I have a view page that uses the layout via <%- include(‘layouts/search_job’); %>. I want to import a variable into this layout without affecting the parent view. Here’s how I’m attempting it:
Express get and post
I have a sign-up page where i collect form data. How would i serve the next page after signup and checking is complete?
Why can’t I use ‘PUT’ in Express.js? Every time I send data to the API, it shows undefined
This the updating router part of the route ‘/parts’