i have two node.js application one is hosted on Heroku and the other is hosted locally, both are connected to the same database hosted on heroku clearDB extension. however , im getting different records when i fetch some data . but not competently, when i add a new record it's retrieved correctly by both application.
code on both environments(local,heroku server):
function getAppointments(user,callback){
var sql = 'SELECT * FROM appointments_3sd3df WHERE clinic_id = ?';
pool.query(sql,[user.clinic_id], function(error, results){
if (error) throw error;
console.log(results);
callback(results);
});
}