So i basically trying to get string value from database into an Array using Sequelize: with my code showed as below, i try sequelize literal to change it but i cannot resolve how to turn it from string into array and split it by “,” (comma): what i want is like this is there is somthing wrong with…
Tag: javascript
Google Maps Filter Javascript
Looking for a way to filter the map markers using pure javascript based upon multiple conditions if they exist. This is based upon having potentially 4 potential filters possible. So imagine I have two or more field sets Project Type (this will be an array of project types [‘engineering’,’co…
Express Can’t “findAll” Users By Key, Only By Email
I have a simple Express/Pug app that is supposed to allow me to search users in a database by “email” and by “key.” In this schema, a key is simply a string that each user is assigned. My user model and index model files look like this: models/index.js: models/users.model.js: My contro…
Why is my foreach and map return undefined [duplicate]
This question already has answers here: What does `return` keyword mean inside `forEach` function? [duplicate] (2 answers) Closed 22 days ago. I have a packet system where you can have products in a packet. So if anyone buy a packet I add this in shopping cart, if he buy it again then I check if the packet id…
Bootstrap CSS positioning
The words or text below the logo in the navbar are not moving to the right of the logo (for reference link to the page -> http://127.0.0.1:5500/index.html). Additionally the logo is not shifting to its left – it’s happening in basically all the navbar codes. I’m trying to do this using CS…
axios error react interceptors request is not a function
i have a configuration with axios i am testing a feature to receive a list of students from an api, the problem is that it sends me an error: TypeError: constants_api_constants__WEBPACK_IMPORTED_MODULE_1_.default.interceptors.request is not a function For my axios configuration I use: How I resolve my promise…
React Class Component setState undefined
I am attempting to update a variable from “” to a string of text with an onClick method in React. I’ve approached this several different ways following examples on the web and Youtube but all are resulting in various error messages. This is the latest attempt and I’m receiving an error…
the id of cart shows null in controller but i m sure i m sending it NODE JS
I m sending the id of the product from this view (I m using express and mongoose db) I m sure it is not null here then I have this middleware to receive it and here is the function post Cart When I first receive it in the postcard function I made a log and it gives me the log
Display:inline-block before transition with pure Javascript
I am trying to animate a hidden menu box to appear and slide down when the mouse is over the button. It works properly, but when adding the transition display:inline-block -> display:none -> display:inline-block the transition disappears. I already saw a few posts with solutions in jQuery, but none is p…
display nothing on removing file [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 8 months ago. Improve this question I making a form where I need to upload image & display it & it displayed. But the p…