fix(feishu): commit findByFeishuUserId repository method (missed)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-03-09 03:21:39 -07:00
parent 9e906367f6
commit 042e49988c
1 changed files with 4 additions and 0 deletions

View File

@ -31,6 +31,10 @@ export class AgentInstanceRepository {
return this.repo.findOne({ where: { dingTalkUserId, status: Not('removed') } as any });
}
findByFeishuUserId(feishuUserId: string): Promise<AgentInstance | null> {
return this.repo.findOne({ where: { feishuUserId, status: Not('removed') } as any });
}
save(instance: AgentInstance): Promise<AgentInstance> {
return this.repo.save(instance);
}