Skip to content

Commit 3c2cc6b

Browse files
author
Julien Heller
authored
Merge pull request #71 from EOSIO/set-massive-type
Set type of `massiveInstance`
2 parents b13fdcf + 5e2fe6d commit 3c2cc6b

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
],
1616
"license": "MIT",
1717
"devDependencies": {
18-
"@blockone/tslint-config-blockone": "^2.0.0",
18+
"@blockone/tslint-config-blockone": "^4.0.0",
1919
"@types/bunyan": "^1.8.5",
2020
"@types/dockerode": "^2.5.5",
2121
"@types/jest": "^24.0.12",

src/MassiveActionHandler.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
import { AbstractActionHandler, HandlerVersion, IndexState, NextBlock, NotInitializedError } from 'demux'
1+
import { Database } from 'massive'
22
import { IDatabase } from 'pg-promise'
3+
import {
4+
AbstractActionHandler,
5+
HandlerVersion,
6+
IndexState,
7+
NextBlock,
8+
NotInitializedError
9+
} from 'demux'
310
import {
411
CyanAuditError,
512
MismatchedMigrationsError,
@@ -34,7 +41,7 @@ export class MassiveActionHandler extends AbstractActionHandler {
3441

3542
constructor(
3643
protected handlerVersions: HandlerVersion[],
37-
protected massiveInstance: any,
44+
protected massiveInstance: Database,
3845
protected dbSchema: string = 'public',
3946
protected migrationSequences: MigrationSequence[] = [],
4047
) {

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,10 @@
131131
lodash "^4.17.11"
132132
to-fast-properties "^2.0.0"
133133

134-
"@blockone/tslint-config-blockone@^2.0.0":
135-
version "2.0.0"
136-
resolved "https://registry.yarnpkg.com/@blockone/tslint-config-blockone/-/tslint-config-blockone-%3Cspan%20class="x x-first x-last">2.0.0.tgz#1df6e235200a14b3d4d440e292db0c921ae69eda"
137-
integrity sha512-IEo4/r07nwNh1Jfq4xCJDt6ZK938kWTfPZ5wFl8nNdh9p/ScZ16CV7GzIIyuIp1MtAJW+yiiM6oCtRwEHwAkvA==
134+
"@blockone/tslint-config-blockone@^4.0.0":
135+
version "4.0.0"
136+
resolved "https://registry.yarnpkg.com/@blockone/tslint-config-blockone/-/tslint-config-blockone-%3Cspan%20class="x x-first x-last">4.0.0.tgz#34ce165e7223acff5811f4bbae66290160c4bf56"
137+
integrity sha512-5x4yzXr+rBJXpfr9bzfZRj36J2WfnWeKk9SBpWkeSQiMuPuiYuoQImcOzzscgZGgTMpHou9tz2M5s3SrT1uEdg==
138138
dependencies:
139139
tslint "^5.11.0"
140140
tslint-eslint-rules "^5.4.0"

0 commit comments

Comments
 (0)