Skip to content

Commit

Permalink
rooms update
Browse files Browse the repository at this point in the history
  • Loading branch information
Vicra committed Oct 20, 2019
1 parent f50ca9e commit 6d13e20
Show file tree
Hide file tree
Showing 8 changed files with 1,062 additions and 1,075 deletions.
12 changes: 11 additions & 1 deletion app/controllers/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ function renderMain(request,h)
});
}

function getUsers(request,h)
{
return fw.promise(async (resolve,reject) =>
{
const users = await usersService.getUsers();
resolve(users);
});
}

/**
* Render View page
* @param {Object} request
Expand Down Expand Up @@ -186,5 +195,6 @@ module.exports =
renderAdd,
addUser,
editUser,
deleteUser
deleteUser,
getUsers
}
2 changes: 1 addition & 1 deletion app/models/services/roomService.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async function hasArticles(data)
async function getTodayDashboard()
{
var rooms = await roomDAO.getRooms();
var todayEvents = await eventDAO.getRooms();
var todayEvents = await eventDAO.getTodayEvents();
var returnObject = [];
for (var i = 0; i < rooms.length; i++) {
for (var j = 0; j < todayEvents.length; j++) {
Expand Down
Loading

0 comments on commit 6d13e20

Please sign in to comment.