Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/shared/models/asset/asset.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export class AssetService {
.select('DISTINCT asset.name', 'name')
.innerJoin('asset.liquidityManagementRule', 'lmRule')
.innerJoin('lmRule.deficitStartAction', 'deficitAction')
.where('asset.buyable = 1')
.where('asset.buyable = true')
.andWhere('deficitAction.system = :exchange', { exchange })
.getRawMany<{ name: string }>()
.then((l) => l.map((a) => a.name));
Expand Down
4 changes: 2 additions & 2 deletions src/shared/models/ip-log/ip-log.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class IpLogService {
.innerJoin(User, 'user', 'ipLog.address=user.address')
.innerJoin('user.userData', 'userData')
.where('ipLog.ip = :ip', { ip })
.andWhere('(userData.hasIpRisk = 0 OR userData.hasIpRisk IS NULL)')
.andWhere('(userData.hasIpRisk = false OR userData.hasIpRisk IS NULL)')
.getRawMany<{ id: number }>()
.then((u) => u.map((userData) => userData.id));

Expand All @@ -97,7 +97,7 @@ export class IpLogService {
.innerJoin(UserData, 'userData', 'ipLog.address=userData.mail')
.where('ipLog.ip = :ip', { ip })
.andWhere(`ipLog.address LIKE '%@%'`)
.andWhere('(userData.hasIpRisk = 0 OR userData.hasIpRisk IS NULL)')
.andWhere('(userData.hasIpRisk = false OR userData.hasIpRisk IS NULL)')
.getRawMany<{ id: number }>()
.then((u) => u.map((userData) => userData.id));

Expand Down
2 changes: 1 addition & 1 deletion src/subdomains/generic/user/models/user/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export class UserService {
.leftJoin('userData.users', 'linkedUser')
.leftJoin('linkedUser.wallet', 'wallet')
.where('user.id = :id', { id })
.andWhere('wallet.isKycClient = 0')
.andWhere('wallet.isKycClient = false')
.andWhere('linkedUser.status NOT IN (:...userStatus)', {
userStatus: [UserStatus.BLOCKED, UserStatus.DELETED],
})
Expand Down
Loading