mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-07 22:09:57 +00:00
fix: add auth property to registerPluginHttpRoute, fix fetchMattermostUserTeams call signature
This commit is contained in:
committed by
Muhammed Mukhthar CM
parent
56b7383bf3
commit
6bc51f1e34
@@ -459,6 +459,7 @@ export async function monitorMattermostProvider(opts: MonitorMattermostOpts = {}
|
||||
const unregisterInteractions = registerPluginHttpRoute({
|
||||
path: interactionPath,
|
||||
fallbackPath: "/mattermost/interactions/default",
|
||||
auth: "plugin",
|
||||
handler: createMattermostInteractionHandler({
|
||||
client,
|
||||
botUserId,
|
||||
|
||||
@@ -158,7 +158,8 @@ async function resolveChannelIdByName(params: {
|
||||
return cached;
|
||||
}
|
||||
const client = createMattermostClient({ baseUrl, botToken: token });
|
||||
const teams = await fetchMattermostUserTeams(client);
|
||||
const me = await fetchMattermostMe(client);
|
||||
const teams = await fetchMattermostUserTeams(client, me.id);
|
||||
for (const team of teams) {
|
||||
try {
|
||||
const channel = await fetchMattermostChannelByName(client, team.id, name);
|
||||
|
||||
Reference in New Issue
Block a user