Batch account-balance evaluate and format range inputs with separators and gram labels.
EOF Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -8,7 +8,7 @@ import { RequireOrgModule } from '../billing/org-module.decorator';
|
||||
import { OrgModuleGuard } from '../billing/org-module.guard';
|
||||
import { AccountBalanceSettingsService } from './account-balance-settings.service';
|
||||
import { BalanceClaimsService } from './balance-claims.service';
|
||||
import { UpdateAccountBalanceSettingsDto } from './dto';
|
||||
import { EvaluateAccountBalancesDto, UpdateAccountBalanceSettingsDto } from './dto';
|
||||
|
||||
@Controller('account-balances')
|
||||
@UseGuards(JwtAuthGuard, RolesGuard, OrgModuleGuard)
|
||||
@@ -31,10 +31,13 @@ export class AccountBalancesController {
|
||||
return this.settings.update(user.organizationId, dto);
|
||||
}
|
||||
|
||||
/** اجرای دستی همان جاب دورهای برای محیط جاری */
|
||||
/** یک تکه از ارزیابی (حداکثر ۲۰۰۰ نفر)؛ کلاینت تکهها را پشت سر هم میزند */
|
||||
@Post('evaluate')
|
||||
@Roles('owner', 'admin')
|
||||
evaluate(@CurrentUser() user: Actor) {
|
||||
return this.claims.evaluateOrganization(user.organizationId);
|
||||
evaluate(@CurrentUser() user: Actor, @Body() dto: EvaluateAccountBalancesDto) {
|
||||
return this.claims.evaluateOrganization(user.organizationId, {
|
||||
offset: dto.offset,
|
||||
limit: dto.limit,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user