@@ -27,7 +27,7 @@ export class CRUDService {
2727 * @memberof CRUDService
2828 */
2929
30- getTxCountByBlockNum ( network_name , channel_genesis_hash , blockNum ) {
30+ getTxCountByBlockNum ( network_name : any , channel_genesis_hash : any , blockNum : any ) {
3131 return this . sql . getRowByPkOne (
3232 `select blocknum ,txcount from blocks where channel_genesis_hash='${ channel_genesis_hash } ' and blocknum=${ blockNum } and network_name = '${ network_name } ' `
3333 ) ;
@@ -41,7 +41,7 @@ export class CRUDService {
4141 * @returns
4242 * @memberof CRUDService
4343 */
44- getTransactionByID ( network_name , channel_genesis_hash , txhash ) {
44+ getTransactionByID ( network_name : any , channel_genesis_hash : any , txhash : any ) {
4545 const sqlTxById = ` select t.txhash,t.validation_code,t.payload_proposal_hash,t.creator_msp_id,t.endorser_msp_id,t.chaincodename,t.type,t.createdt,t.read_set,
4646 t.write_set,channel.name as channelName from TRANSACTIONS as t inner join channel on t.channel_genesis_hash=channel.channel_genesis_hash and t.network_name=channel.network_name
4747 where t.txhash = '${ txhash } ' and t.network_name = '${ network_name } ' ` ;
@@ -56,7 +56,7 @@ export class CRUDService {
5656 * @memberof CRUDService
5757 */
5858
59- getBlockActivityList ( network_name , channel_genesis_hash ) {
59+ getBlockActivityList ( network_name : any , channel_genesis_hash : any ) {
6060 const sqlBlockActivityList = `select blocks.blocknum,blocks.txcount ,blocks.datahash ,blocks.blockhash ,blocks.prehash,blocks.createdt, (
6161 SELECT array_agg(txhash) as txhash FROM transactions where blockid = blocks.blocknum and
6262 channel_genesis_hash = '${ channel_genesis_hash } ' and network_name = '${ network_name } ' group by transactions.blockid ),
@@ -78,7 +78,7 @@ export class CRUDService {
7878 * @returns
7979 * @memberof CRUDService
8080 */
81- getTxList ( network_name , channel_genesis_hash , blockNum , txid , from , to , orgs ) {
81+ getTxList ( network_name : any , channel_genesis_hash : any , blockNum : any , txid : any , from : any , to : any , orgs : string ) {
8282 let byOrgs = false ;
8383 if ( orgs && orgs !== '' ) {
8484 byOrgs = true ;
@@ -113,12 +113,12 @@ export class CRUDService {
113113 * @memberof CRUDService
114114 */
115115 getBlockAndTxList (
116- network_name ,
117- channel_genesis_hash ,
118- blockNum ,
119- from ,
120- to ,
121- orgs
116+ network_name : any ,
117+ channel_genesis_hash : any ,
118+ blockNum : any ,
119+ from : any ,
120+ to : any ,
121+ orgs : string
122122 ) {
123123 let byOrgs = false ;
124124 // workaround for SQL injection
@@ -162,7 +162,7 @@ export class CRUDService {
162162 * @memberof CRUDService
163163 */
164164
165- async getChannelConfig ( network_name , channel_genesis_hash ) {
165+ async getChannelConfig ( network_name : any , channel_genesis_hash : any ) {
166166 const channelConfig = await this . sql . getRowsBySQlCase (
167167 ` select * from channel where channel_genesis_hash ='${ channel_genesis_hash } ' and network_name = '${ network_name } ' `
168168 ) ;
@@ -177,7 +177,7 @@ export class CRUDService {
177177 * @returns
178178 * @memberof CRUDService
179179 */
180- async getChannel ( network_name , channelname , channel_genesis_hash ) {
180+ async getChannel ( network_name : any , channelname : any , channel_genesis_hash : any ) {
181181 const channel = await this . sql . getRowsBySQlCase (
182182 ` select * from channel where name='${ channelname } ' and channel_genesis_hash='${ channel_genesis_hash } ' and network_name = '${ network_name } ' `
183183 ) ;
@@ -190,7 +190,7 @@ export class CRUDService {
190190 * @returns
191191 * @memberof CRUDService
192192 */
193- async existChannel ( network_name , channelname ) {
193+ async existChannel ( network_name : any , channelname : any ) {
194194 const channel = await this . sql . getRowsBySQlCase (
195195 ` select count(1) from channel where name='${ channelname } ' and network_name = '${ network_name } ' `
196196 ) ;
0 commit comments