This commit is contained in:
parent
c7da71d8c0
commit
0e11bfab0b
|
@ -78,7 +78,7 @@ module.exports = Self => {
|
|||
const saleIds = sales.map(sale => sale.id);
|
||||
|
||||
const hasClaimedSales = await models.ClaimBeginning.findOne({where: {saleFk: {inq: saleIds}}});
|
||||
if (hasClaimedSales)
|
||||
if (ticketId != id && hasClaimedSales)
|
||||
throw new UserError(`Can't transfer claimed sales`);
|
||||
|
||||
for (const sale of sales) {
|
||||
|
|
Loading…
Reference in New Issue