mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-18 19:50:38 +09:00
Reduce company skill list payloads
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
cca086b863
commit
8460fee380
4 changed files with 58 additions and 13 deletions
|
|
@ -1551,7 +1551,7 @@ export function companyPortabilityService(db: Db) {
|
|||
|
||||
const allAgentRows = include.agents ? await agents.list(companyId, { includeTerminated: true }) : [];
|
||||
const agentRows = allAgentRows.filter((agent) => agent.status !== "terminated");
|
||||
const companySkillRows = await companySkills.list(companyId);
|
||||
const companySkillRows = await companySkills.listFull(companyId);
|
||||
if (include.agents) {
|
||||
const skipped = allAgentRows.length - agentRows.length;
|
||||
if (skipped > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue