diff --git a/apps/site/package.json b/apps/site/package.json index 4ef19e5..6a03e58 100644 --- a/apps/site/package.json +++ b/apps/site/package.json @@ -7,7 +7,7 @@ "dev": "next dev", "build": "next build", "start": "next start", - "lint": "next lint" + "lint": "eslint ." }, "dependencies": { "fumadocs-core": "^16.4.7", diff --git a/packages/core/src/adapters/objectstack-adapter.ts b/packages/core/src/adapters/objectstack-adapter.ts index 97ec748..87a6c4d 100644 --- a/packages/core/src/adapters/objectstack-adapter.ts +++ b/packages/core/src/adapters/objectstack-adapter.ts @@ -125,11 +125,12 @@ export class ObjectStackAdapter implements DataSource { switch (operation) { case 'create': return this.client.data.createMany(resource, data); - case 'delete': + case 'delete': { const ids = data.map(item => (item as any).id).filter(Boolean); await this.client.data.deleteMany(resource, ids); return []; - case 'update': + } + case 'update': { // For update, we need to handle each record individually // or use the batch update if all records get the same changes const results = await Promise.all( @@ -138,6 +139,7 @@ export class ObjectStackAdapter implements DataSource { ) ); return results; + } default: throw new Error(`Unsupported bulk operation: ${operation}`); }