diff --git a/packages/agent/src/index.ts b/packages/agent/src/index.ts index e0d54aecddb..5429f3f2946 100644 --- a/packages/agent/src/index.ts +++ b/packages/agent/src/index.ts @@ -350,7 +350,7 @@ async function findDatabaseAdapter(runtime: IAgentRuntime) { let adapter: Adapter | undefined; // if not found, default to sqlite if (adapters.length === 0) { - const sqliteAdapterPlugin = await importWithRetry('@elizaos-plugins/sqlite'); + const sqliteAdapterPlugin = await importWithRetry('@elizaos-plugins/sqlite'); const sqliteAdapterPluginDefault = sqliteAdapterPlugin.default; adapter = sqliteAdapterPluginDefault.adapters[0]; if (!adapter) { diff --git a/packages/core/src/import.ts b/packages/core/src/import.ts index a714a9bea2c..01a78034dc4 100644 --- a/packages/core/src/import.ts +++ b/packages/core/src/import.ts @@ -35,7 +35,7 @@ export const dynamicImport = async (specifier: string) => { if (module !== undefined) { return module; } else { - return await importWithRetry(specifier); + return await importWithRetry(specifier); } }; @@ -49,7 +49,7 @@ export async function handlePluginImporting(plugins: string[]) { const importedPlugins = await Promise.all( plugins.map(async (plugin) => { try { - const importedPlugin = await importWithRetry(plugin); + const importedPlugin = await importWithRetry(plugin); const functionName = `${plugin .replace("@elizaos/plugin-", "")