filter claims by bid_state: 'Controlling'
This commit is contained in:
parent
8e5cb3b3d4
commit
7785320f49
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ export default (db, table, sequelize) => ({
|
|||
getAllChannelClaims: async (channelClaimId) => {
|
||||
logger.debug(`claim.getAllChannelClaims for ${channelClaimId}`);
|
||||
return await table.findAll({
|
||||
where: { publisher_id: channelClaimId },
|
||||
where: { publisher_id: channelClaimId, bid_state: 'Controlling' },
|
||||
order: [['height', 'DESC']],
|
||||
})
|
||||
.then(channelClaimsArray => {
|
||||
|
|
Loading…
Add table
Reference in a new issue