Message from JavaScript discussions

June 2019

— How can i send this different query results to the same view page


Promises :) It'll be hard to orchestrate multiple callbacks to finish, unless you do everything in serial.


const {promisify} = require('util')
const query = promisify(sql.query)

Vibe.queryVibe = async function() {
const [ total, fail, allToday, success ] = await Promise.all([
query(`Select count(*) as total from mfmbs.funds_transfer_transaction`,
query("SELECT count(*) as fail FROM mfmbs.funds_transfer_transaction where DATE(FTTRANTIME)=DATE(NOW()) and ERRMSG LIKE '%Core banking down%'",
query("SELECT count(*) as allToday FROM mfmbs.funds_transfer_transaction where DATE(FTTRANTIME)=DATE(NOW())",
query("SELECT count(*) as success FROM mfmbs.funds_transfer_transaction where DATE(FTTRANTIME)=DATE(NOW()) and FTRESULT='Success'",
return { total, fail, allToday, success }


Message permanent page

— Also, keep your res and req objects out of your data retrieval level

— That belongs to the HTTP api only

— Https://

— How to refresh one of the 'div' in a page using jquery or javascript ...??

— Anyone can answer my question..??

— Maybe load() ?

— Https://

— Anyone good in NodeJs for backend interested in partnering with me on a project?

— Kindly DM. Thanks.