Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/controllers/activityController.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const Activity = require('../models/activity');
const LessonPlan = require('../models/lessonPlan');
const Subject = require('../models/subject');
const Atom = require('../models/atom');

const activityController = function () {
// Get all activities
const getActivities = async (req, res) => {
Expand Down
1 change: 0 additions & 1 deletion src/helpers/overviewReportHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,6 @@ const overviewReportHelper = function () {
}

async function getTasksStats(startDate, endDate, comparisonStartDate, comparisonEndDate) {

if (comparisonStartDate && comparisonEndDate) {
const taskStats = await Task.aggregate([
{
Expand Down
1 change: 0 additions & 1 deletion src/routes/kitchenandinventory/KIInventoryRouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ const router = function () {
};

module.exports = router;

6 changes: 3 additions & 3 deletions src/scripts/seedKIInventoryItems.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,12 +470,12 @@ async function seed() {

// Quick stats summary
const total = inserted.length;
const critical = inserted.filter(i => i.presentQuantity <= i.reorderAt * 0.5).length;
const critical = inserted.filter((i) => i.presentQuantity <= i.reorderAt * 0.5).length;
const low = inserted.filter(
i => i.presentQuantity <= i.reorderAt && i.presentQuantity > i.reorderAt * 0.5,
(i) => i.presentQuantity <= i.reorderAt && i.presentQuantity > i.reorderAt * 0.5,
).length;
const preserved = inserted.filter(
i =>
(i) =>
i.category === 'INGREDIENT' &&
new Date(i.expiryDate) >= new Date(Date.now() + 365 * 24 * 60 * 60 * 1000),
).length;
Expand Down
2 changes: 1 addition & 1 deletion src/startup/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ module.exports = function (app) {
app.use('/api/applicant-volunteer-ratio', applicantVolunteerRatioRouter);
app.use('/api/map-analytics', mapAnalyticsRouter);
app.use('/api/analytics', countryAnalyticsRouter);
app.use('/job-analytics', jobAnalyticsRouter);
app.use('/api/job-analytics-router', jobAnalyticsRouter);
app.use('/api', weeklySummariesFilterRouter);
app.use('/api/popularity', popularityTimelineRoutes);
app.use('/applications', applicationRoutes);
Expand Down
Loading