Skip to content

Commit

Permalink
fix:update dependency sqlite3 to v5.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsupa597 committed May 23, 2023
1 parent ac9afe2 commit faf2d56
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/neuron-wallet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"reflect-metadata": "0.1.13",
"rxjs": "6.6.7",
"sha3": "2.1.4",
"sqlite3": "5.1.4",
"sqlite3": "5.1.6",
"subleveldown": "4.1.4",
"typeorm": "0.2.25",
"undici": "5.21.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/neuron-wallet/src/services/cells.ts
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ export default class CellsService {
.where(
`
multisig_output.status IN (:...statuses) AND
multisig_output.lockArgs in (:lockArgs) AND
multisig_output.lockArgs IN (:...lockArgs) AND
multisig_output.lockCodeHash = :lockCodeHash AND
multisig_output.lockHashType = :lockHashType
`,
Expand Down
8 changes: 7 additions & 1 deletion packages/neuron-wallet/tests/services/multisig.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,14 @@ describe('multisig service', () => {

describe('save multisig config', () => {
it('has exist', async () => {
await expect(multisigService.saveMultisigConfig(defaultMultisigConfig)).rejects.toThrow()
const result = await getConnection()
.getRepository(MultisigConfig)
.createQueryBuilder()
.where('id = :id', { id: multisigConfigModel.id })
.getCount()
expect(result).toEqual(1)
})

it('save success', async () => {
defaultMultisigConfig.walletId = 'walletId1'
const res = await multisigService.saveMultisigConfig(defaultMultisigConfig)
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -20957,10 +20957,10 @@ sprintf-js@~1.0.2:
resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c"
integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==

sqlite3@5.1.4:
version "5.1.4"
resolved "https://registry.yarnpkg.com/sqlite3/-/sqlite3-5.1.4.tgz#35f83d368963168b324ad2f0fffce09f3b8723a7"
integrity sha512-i0UlWAzPlzX3B5XP2cYuhWQJsTtlMD6obOa1PgeEQ4DHEXUuyJkgv50I3isqZAP5oFc2T8OFvakmDh2W6I+YpA==
sqlite3@5.1.6:
version "5.1.6"
resolved "https://registry.yarnpkg.com/sqlite3/-/sqlite3-5.1.6.tgz#1d4fbc90fe4fbd51e952e0a90fd8f6c2b9098e97"
integrity sha512-olYkWoKFVNSSSQNvxVUfjiVbz3YtBwTJj+mfV5zpHmqW3sELx2Cf4QCdirMelhM5Zh+KDVaKgQHqCxrqiWHybw==
dependencies:
"@mapbox/node-pre-gyp" "^1.0.0"
node-addon-api "^4.2.0"
Expand Down

0 comments on commit faf2d56

Please sign in to comment.