Redberry
Redberry
DDeno
Created by Redberry on 10/10/2023 in #help
mysql query is skipped
Hi, I have a function that should retrieve data from the database and then process and return it. The function is however skipping the query and returning undefined. This is the query:
function getUser(name) {
client.query(`SELECT * FROM users WHERE name=? LIMIT 1`, [name]).then(data => {
// I want it to process and return the user data
})
// But it skips the query and returns undefined
}
function getUser(name) {
client.query(`SELECT * FROM users WHERE name=? LIMIT 1`, [name]).then(data => {
// I want it to process and return the user data
})
// But it skips the query and returns undefined
}
5 replies
DDeno
Created by Redberry on 6/21/2023 in #help
Permission denied (os error 13)
17 replies