filter claims by bid_state: 'Controlling'

This commit is contained in:
Travis Eden 2018-10-18 12:29:24 -04:00
parent 8e5cb3b3d4
commit 7785320f49

View file

@ -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 => {