fix(mcp): satisfy work sync lint
This commit is contained in:
parent
1ff1e6ca07
commit
447d5fb758
1 changed files with 12 additions and 4 deletions
|
|
@ -41,10 +41,18 @@ function buildRequiredReportFollowUp(input: {
|
|||
return input.status;
|
||||
}
|
||||
|
||||
const memberName =
|
||||
input.memberName?.trim() ||
|
||||
input.from?.trim() ||
|
||||
(typeof status.memberName === 'string' ? status.memberName.trim() : '');
|
||||
const inputMemberName = input.memberName?.trim();
|
||||
const fromMemberName = input.from?.trim();
|
||||
let memberName = '';
|
||||
if (typeof status.memberName === 'string') {
|
||||
memberName = status.memberName.trim();
|
||||
}
|
||||
if (fromMemberName) {
|
||||
memberName = fromMemberName;
|
||||
}
|
||||
if (inputMemberName) {
|
||||
memberName = inputMemberName;
|
||||
}
|
||||
const items = Array.isArray(agenda?.items) ? agenda.items : [];
|
||||
const taskIds = items
|
||||
.map((item) => asRecord(item)?.taskId)
|
||||
|
|
|
|||
Loading…
Reference in a new issue