fix: async callback
This commit is contained in:
+1
-1
@@ -380,7 +380,7 @@ router.post('/affiliations/:target', async function (req, res) {
|
||||
queryparams[0] = target.split("@")[0];
|
||||
queryparams[1] = target.split("@")[1];
|
||||
var sqlquery="select value from prosody where prosody.store='config' and prosody.key='_affiliations' and prosody.user=$1 and prosody.host=$2";
|
||||
dbpool.query(sqlquery, queryparams, function (derr, dres) {
|
||||
dbpool.query(sqlquery, queryparams, async function (derr, dres) {
|
||||
if (derr == null) {
|
||||
if (dres.rowCount > 0) {
|
||||
// groupchat is found and exists
|
||||
|
||||
Reference in New Issue
Block a user