diff --git a/packages/pieces/community/folk/package.json b/packages/pieces/community/folk/package.json index 93f4cf637d0..311455b447a 100644 --- a/packages/pieces/community/folk/package.json +++ b/packages/pieces/community/folk/package.json @@ -1,6 +1,6 @@ { "name": "@activepieces/piece-folk", - "version": "0.1.0", + "version": "0.1.1", "type": "commonjs", "main": "./src/index.js", "types": "./src/index.d.ts", diff --git a/packages/pieces/community/folk/src/lib/common/client.ts b/packages/pieces/community/folk/src/lib/common/client.ts index e48009b6e8f..09a19d328b7 100644 --- a/packages/pieces/community/folk/src/lib/common/client.ts +++ b/packages/pieces/community/folk/src/lib/common/client.ts @@ -30,7 +30,7 @@ export const folkClient = { method, url: `${this.baseUrl}${url}`, headers: { - Authorization: `Bearer ${apiKey}`, + Authorization: `Bearer ${apiKey.secret_text}`, 'Content-Type': 'application/json', ...headers, }, diff --git a/packages/server/api/src/app/pieces/metadata/local-piece-cache.ts b/packages/server/api/src/app/pieces/metadata/local-piece-cache.ts index 5e22a325ed4..cd94843a72d 100644 --- a/packages/server/api/src/app/pieces/metadata/local-piece-cache.ts +++ b/packages/server/api/src/app/pieces/metadata/local-piece-cache.ts @@ -1,3 +1,4 @@ +import { mkdir } from 'node:fs/promises' import path from 'path' import { pieceTranslation } from '@activepieces/pieces-framework' import { AppSystemProp, filePiecesUtils, memoryLock, rejectedPromiseHandler } from '@activepieces/server-shared' @@ -233,6 +234,7 @@ async function getOrCreateCache(): Promise { return cacheInstance } const baseDir = system.getOrThrow(AppSystemProp.CONFIG_PATH) + await mkdir(baseDir, { recursive: true }) const dbPath = path.resolve(path.join(baseDir, 'pieces-cache-db.sqlite')) const db = new Keyv({ store: new KeyvSqlite(`sqlite://${dbPath}`),