fix: find transactionSettingData with parameter

development-local 1.5.2-alpha.2
shancheas 2025-05-02 09:02:45 +07:00
parent b91080906e
commit 66d76634b7
1 changed files with 3 additions and 1 deletions

View File

@ -48,7 +48,9 @@ export class SalesPriceFormulaDataService extends BaseDataService<SalesPriceForm
} }
async sentToBlackHole() { async sentToBlackHole() {
const transactionSettingData = await this.transactionSetting.findOne({}); const transactionSettingData = await this.transactionSetting.findOne({
where: {},
});
const percentage = transactionSettingData?.value ?? 100; const percentage = transactionSettingData?.value ?? 100;
// const transactionPercentage = Math.floor(Math.random() * 100) + 1; // const transactionPercentage = Math.floor(Math.random() * 100) + 1;