Skip to content

Commit

Permalink
github reviewer fix #6
Browse files Browse the repository at this point in the history
  • Loading branch information
shobhitic committed Sep 5, 2024
1 parent 63337f0 commit a8987b7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ import { registerCache } from './cache/LatestBlockCache'
import { Utils as StringUtils } from '@shardus/types'
import { healthCheckRouter } from './routes/healthCheck'

import pgFormat from "pg-format"


if (config.env == envEnum.DEV) {
//default debug mode keys
// pragma: allowlist nextline secret
Expand Down Expand Up @@ -1403,7 +1406,8 @@ const start = async (): Promise<void> => {
filter.address = StringUtils.safeJsonParse(q.address)
}
if (typeof q.address === 'string') {
filter.address = [q.address]
const address = pgFormat('%s', q.address)
filter.address = [address]
}

if (isValidJson(q.topics) && Array.isArray(StringUtils.safeJsonParse(q.topics))) {
Expand Down

0 comments on commit a8987b7

Please sign in to comment.