diff --git a/packages/server/__tests__/db/db.test.js b/packages/server/__tests__/db/db.test.js index 2c6b1f14e..cab3cb790 100644 --- a/packages/server/__tests__/db/db.test.js +++ b/packages/server/__tests__/db/db.test.js @@ -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); }); }); diff --git a/packages/server/src/db/index.js b/packages/server/src/db/index.js index 47660a24c..bcc4bbe85 100755 --- a/packages/server/src/db/index.js +++ b/packages/server/src/db/index.js @@ -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); @@ -1012,7 +1012,7 @@ 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]; } @@ -1020,7 +1020,7 @@ 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; }