Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
masimons committed Aug 15, 2024
1 parent 72dd542 commit 6a50a35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/server/__tests__/db/db.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ describe('db', () => {
newGrant.opportunity_status = 'forecasted';
await knex(TABLES.grants).insert(Object.values([newGrant]));
const result = await db.getNewGrantsForAgency(fixtures.agencies.accountancy);
const forecastedGrant = result.filter((grant) => { grant.grant_id === '444817'});
const forecastedGrant = result.filter((grant) => grant.grant_id === '444817');
expect(forecastedGrant.length).to.equal(0);
});
});
Expand Down
6 changes: 3 additions & 3 deletions packages/server/src/db/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ async function getNewGrantsForAgency(agency) {
.modify(helpers.whereAgencyCriteriaMatch, agencyCriteria)
.modify((qb) => {
qb.where({ open_date: moment().subtract(1, 'day').format('YYYY-MM-DD') })
.whereNot({ opportunity_status: 'forecasted' });
.whereNot({ opportunity_status: 'forecasted' });
})
.limit(3);

Expand Down Expand Up @@ -1012,15 +1012,15 @@ async function getGrant({ grantId }) {
const results = await knex.table(TABLES.grants)
.select('*')
.where({ grant_id: grantId })
.whereNot({ opportunity_status: 'forecasted'});
.whereNot({ opportunity_status: 'forecasted' });
return results[0];
}

async function getSingleGrantDetails({ grantId, tenantId }) {
const results = await knex.table(TABLES.grants)
.select('*')
.where({ grant_id: grantId })
.whereNot({ opportunity_status: 'forecasted'});
.whereNot({ opportunity_status: 'forecasted' });
const enhancedResults = await enhanceGrantData(tenantId, results);
return enhancedResults.length ? enhancedResults[0] : null;
}
Expand Down

0 comments on commit 6a50a35

Please sign in to comment.