Skip to content

Commit

Permalink
chore(mojaloop/#3518): update database lib (#967)
Browse files Browse the repository at this point in the history
chore(mojaloop/#3518):update database lib - mojaloop/project#3518
- replaced `central-services-database` with `database-lib`
  • Loading branch information
oderayi authored Sep 6, 2023
1 parent 490040a commit 8da550a
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 112 deletions.
115 changes: 11 additions & 104 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"@hapi/joi": "17.1.1",
"@hapi/vision": "7.0.3",
"@hapi/catbox-memory": "6.0.1",
"@mojaloop/central-services-database": "10.7.0",
"@mojaloop/database-lib": "11.0.3",
"@mojaloop/central-services-error-handling": "12.0.7",
"@mojaloop/central-services-health": "14.0.2",
"@mojaloop/central-services-logger": "11.2.2",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
******/
'use strict'

module.exports = require('@mojaloop/central-services-database').Db
module.exports = require('@mojaloop/database-lib').Db
2 changes: 1 addition & 1 deletion src/lib/migrator.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const Path = require('path')
const Migrations = require('@mojaloop/central-services-database').Migrations
const Migrations = require('@mojaloop/database-lib').Migrations
const Knexfile = require('../../config/knexfile')

exports.migrate = function () {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/handlers/root.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
const Test = require('tape')
const Joi = require('joi')
const Logger = require('@mojaloop/central-services-logger')
const Db = require('@mojaloop/central-services-database').Db
const Db = require('@mojaloop/database-lib').Db

const Config = require('../../../src/lib/config')
const Consumer = require('@mojaloop/central-services-stream').Util.Consumer
Expand Down
2 changes: 1 addition & 1 deletion test/integration/handlers/transfers/handlers.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const Logger = require('@mojaloop/central-services-logger')
const Config = require('#src/lib/config')
const Time = require('@mojaloop/central-services-shared').Util.Time
const sleep = Time.sleep
const Db = require('@mojaloop/central-services-database').Db
const Db = require('@mojaloop/database-lib').Db
const Cache = require('#src/lib/cache')
const Producer = require('@mojaloop/central-services-stream').Util.Producer
const Utility = require('@mojaloop/central-services-shared').Util.Kafka
Expand Down
2 changes: 1 addition & 1 deletion test/integration/helpers/settlementModels.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
const Model = require('../../../src/domain/settlement')
const Enums = require('../../../src/lib/enumCached')
const ErrorHandler = require('@mojaloop/central-services-error-handling')
const Db = require('@mojaloop/central-services-database').Db
const Db = require('@mojaloop/database-lib').Db
const Cache = require('../../../src/lib/cache')
const ParticipantCached = require('../../../src/models/participant/participantCached')
const ParticipantCurrencyCached = require('../../../src/models/participant/participantCurrencyCached')
Expand Down
2 changes: 1 addition & 1 deletion test/unit/lib/migrator.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const Test = require('tapes')(require('tape'))
const Sinon = require('sinon')
const Path = require('path')
const Migrations = require('@mojaloop/central-services-database').Migrations
const Migrations = require('@mojaloop/database-lib').Migrations
const Proxyquire = require('proxyquire')

Test('migrator', migratorTest => {
Expand Down
2 changes: 1 addition & 1 deletion test/util/randomTransfers.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

const Uuid = require('uuid4')
const Config = require('../../src/lib/config')
const Db = require('@mojaloop/central-services-database').Db
const Db = require('@mojaloop/database-lib').Db
const Enum = require('../../src/lib/enum')
const TS = Enum.TransferState

Expand Down

0 comments on commit 8da550a

Please sign in to comment.