use agentname in ws actions and frontend
This commit is contained in:
1 parent
3b2b3507e5
commit
56e4844992
6 files changed
+61
-25
No files matched your search
@@ -326,9 +326,9 @@ export async function getAgents() {
|
||||
return cache.agents;
|
||||
}
|
||||
|
||||
export async function getAgent(agentId) {
|
||||
export async function getAgent(agentname) {
|
||||
const allAgents = await getAgents();
|
||||
return allAgents.find(it => it.id == agentId);
|
||||
return allAgents.find(it => it.agentname == agentname);
|
||||
}
|
||||
|
||||
export function readStream(streamId) {
|
||||
|
||||
Reference in new issue
Block a user