Fix business load
This commit is contained in:
@@ -25,7 +25,7 @@ function loadBusinessFromId(businessId) {
|
|||||||
if(dbQuery) {
|
if(dbQuery) {
|
||||||
let dbAssoc = fetchQueryAssoc(dbQuery);
|
let dbAssoc = fetchQueryAssoc(dbQuery);
|
||||||
freeDatabaseQuery(dbQuery);
|
freeDatabaseQuery(dbQuery);
|
||||||
return new BusinessData(dbAssoc);
|
return new BusinessData(dbAssoc[0]);
|
||||||
}
|
}
|
||||||
disconnectFromDatabase(dbConnection);
|
disconnectFromDatabase(dbConnection);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user