Skip to content
This repository has been archived by the owner on Oct 25, 2021. It is now read-only.

Commit

Permalink
tweaks to deal with regression in neo4j driver
Browse files Browse the repository at this point in the history
  • Loading branch information
wheresrhys committed Jun 24, 2021
1 parent d56fac6 commit 7a0c5bc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const neo4jTemporalTypes = require('neo4j-driver/lib/temporal-types');
const { types: neo4jTemporalTypes } = require('neo4j-driver');
const { setupMocks, neo4jTest } = require('../../../test-helpers');
const { dbUnavailable } = require('../../../test-helpers/error-stubs');
const { spyDbQuery } = require('../../../test-helpers/db-spies');
Expand Down
2 changes: 1 addition & 1 deletion packages/tc-api-rest-handlers/lib/diff-properties.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const neo4jTemporalTypes = require('neo4j-driver/lib/temporal-types');
const { types: neo4jTemporalTypes } = require('neo4j-driver');
const { getType } = require('@financial-times/tc-schema-sdk');

const isNullValue = val => val === null || val === '';
Expand Down
4 changes: 2 additions & 2 deletions packages/tc-api-rest-handlers/lib/neo4j-type-conversion.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ const {
isDateTime,
isDate,
isTime,
} = require('neo4j-driver/lib/temporal-types');
const neo4jTemporalTypes = require('neo4j-driver/lib/temporal-types');
types: neo4jTemporalTypes,
} = require('neo4j-driver');
const { getType } = require('@financial-times/tc-schema-sdk');

const entriesToObject = (map, [key, val]) => Object.assign(map, { [key]: val });
Expand Down

0 comments on commit 7a0c5bc

Please sign in to comment.