Skip to content

Commit 434139f

Browse files
refactor: use proper ObjectQL type instead of any for getServiceAsync
Agent-Logs-Url: https://github.com/objectstack-ai/framework/sessions/3e1b55e8-5330-4645-b7d8-61e8e032fa00 Co-authored-by: xuyushun441-sys <255036401+xuyushun441-sys@users.noreply.github.com>
1 parent b0e743f commit 434139f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/server/server/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212

1313
import { ObjectKernel, DriverPlugin, AppPlugin } from '@objectstack/runtime';
14-
import { ObjectQLPlugin } from '@objectstack/objectql';
14+
import { ObjectQLPlugin, ObjectQL } from '@objectstack/objectql';
1515
import { TursoDriver } from '@objectstack/driver-turso';
1616
import { InMemoryDriver } from '@objectstack/driver-memory';
1717
import { createHonoApp } from '@objectstack/hono';
@@ -84,7 +84,7 @@ async function ensureKernel(): Promise<ObjectKernel> {
8484
await kernel.use(new DriverPlugin(tursoDriver, 'turso'));
8585

8686
// Configure datasource mapping: sys namespace → Turso, everything else → Memory
87-
const ql = await kernel.getServiceAsync<any>('objectql');
87+
const ql = await kernel.getServiceAsync<ObjectQL>('objectql');
8888
if (ql && typeof ql.setDatasourceMapping === 'function') {
8989
ql.setDatasourceMapping([
9090
// System objects (sys namespace) use Turso for persistent storage

0 commit comments

Comments
 (0)