Cut staging from master #772
2 changed files with 2 additions and 2 deletions
|
@ -917,7 +917,7 @@ var claimQueries = (db, table, sequelize) => ({
|
||||||
getClaimIdByLongChannelId: async (channelClaimId, claimName) => {
|
getClaimIdByLongChannelId: async (channelClaimId, claimName) => {
|
||||||
logger$1.debug(`finding claim id for claim ${claimName} from channel ${channelClaimId}`);
|
logger$1.debug(`finding claim id for claim ${claimName} from channel ${channelClaimId}`);
|
||||||
return await table.findAll({
|
return await table.findAll({
|
||||||
where: { name: claimName, publisher_id: channelClaimId },
|
where: { name: claimName, publisher_id: channelClaimId, bid_state: { [sequelize.Op.or]: ['Controlling', 'Active', 'Accepted'] } },
|
||||||
order: [['id', 'ASC']],
|
order: [['id', 'ASC']],
|
||||||
})
|
})
|
||||||
.then(result => {
|
.then(result => {
|
||||||
|
|
|
@ -116,7 +116,7 @@ export default (db, table, sequelize) => ({
|
||||||
getClaimIdByLongChannelId: async (channelClaimId, claimName) => {
|
getClaimIdByLongChannelId: async (channelClaimId, claimName) => {
|
||||||
logger.debug(`finding claim id for claim ${claimName} from channel ${channelClaimId}`);
|
logger.debug(`finding claim id for claim ${claimName} from channel ${channelClaimId}`);
|
||||||
return await table.findAll({
|
return await table.findAll({
|
||||||
where: { name: claimName, publisher_id: channelClaimId },
|
where: { name: claimName, publisher_id: channelClaimId, bid_state: { [sequelize.Op.or]: ['Controlling', 'Active', 'Accepted'] } },
|
||||||
order: [['id', 'ASC']],
|
order: [['id', 'ASC']],
|
||||||
})
|
})
|
||||||
.then(result => {
|
.then(result => {
|
||||||
|
|
Loading…
Reference in a new issue