mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
fixed type on name
This commit is contained in:
@@ -4,7 +4,7 @@ from typing import List, Optional
|
||||
|
||||
from pydantic import BaseModel, Field, SecretStr
|
||||
|
||||
from backend.blocks.aryshare._api import (
|
||||
from backend.blocks.ayrshare._api import (
|
||||
AyrshareClient,
|
||||
PostError,
|
||||
PostResponse,
|
||||
@@ -516,7 +516,7 @@ class PostToBlueskyBlock(AyrsharePostBlockBase):
|
||||
yield "post_result", post_result
|
||||
|
||||
|
||||
ARYSHARE_NODE_IDS = [
|
||||
AYRSHARE_NODE_IDS = [
|
||||
PostToBlueskyBlock().id,
|
||||
PostToFacebookBlock().id,
|
||||
PostToXBlock().id,
|
||||
@@ -38,7 +38,7 @@ from autogpt_libs.utils.cache import thread_cached
|
||||
from prometheus_client import Gauge, start_http_server
|
||||
|
||||
from backend.blocks.agent import AgentExecutorBlock
|
||||
from backend.blocks.aryshare.post import ARYSHARE_NODE_IDS
|
||||
from backend.blocks.ayrshare.post import AYRSHARE_NODE_IDS
|
||||
from backend.data import redis
|
||||
from backend.data.block import BlockData, BlockInput, BlockSchema, get_block
|
||||
from backend.data.credit import UsageTransactionMetadata
|
||||
@@ -218,7 +218,7 @@ def execute_node(
|
||||
credentials, creds_lock = creds_manager.acquire(user_id, credentials_meta.id)
|
||||
extra_exec_kwargs[field_name] = credentials
|
||||
|
||||
if node_block.id in ARYSHARE_NODE_IDS:
|
||||
if node_block.id in AYRSHARE_NODE_IDS:
|
||||
profile_key = creds_manager.store.get_ayrshare_profile_key(user_id)
|
||||
extra_exec_kwargs["profile_key"] = profile_key
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ from fastapi import APIRouter, Body, Depends, HTTPException, Path, Query, Reques
|
||||
from pydantic import BaseModel, Field, SecretStr
|
||||
from starlette.status import HTTP_404_NOT_FOUND
|
||||
|
||||
from backend.blocks.aryshare._api import AyrshareClient, PostError, SocialPlatform
|
||||
from backend.blocks.ayrshare._api import AyrshareClient, PostError, SocialPlatform
|
||||
from backend.data.graph import set_node_webhook
|
||||
from backend.data.integrations import (
|
||||
WebhookEvent,
|
||||
|
||||
@@ -251,7 +251,7 @@ export const CustomNode = React.memo(
|
||||
return renderHandles(schema.properties);
|
||||
};
|
||||
|
||||
const generateAryshareSSOHandles = (
|
||||
const generateAyrshareSSOHandles = (
|
||||
api: ReturnType<typeof useBackendAPI>,
|
||||
) => {
|
||||
const handleSSOLogin = async () => {
|
||||
@@ -879,7 +879,7 @@ export const CustomNode = React.memo(
|
||||
))}
|
||||
{data.uiType === BlockUIType.AYRSHARE ? (
|
||||
<>
|
||||
{generateAryshareSSOHandles(api)}
|
||||
{generateAyrshareSSOHandles(api)}
|
||||
{generateInputHandles(
|
||||
data.inputSchema,
|
||||
BlockUIType.STANDARD,
|
||||
|
||||
Reference in New Issue
Block a user