fixed type on name

This commit is contained in:
SwiftyOS
2025-05-16 16:15:00 +02:00
parent 3c3311c506
commit ca703fa1f0
5 changed files with 7 additions and 7 deletions

View File

@@ -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,

View File

@@ -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

View File

@@ -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,

View File

@@ -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,