Skip to content

Commit 3d810cb

Browse files
Claudehotlong
andauthored
fix: correct QueryAST usage and add driver type dependencies in runtime
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 9b0ea3c commit 3d810cb

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

packages/runtime/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
"zod": "^4.3.6"
2727
},
2828
"devDependencies": {
29+
"@objectstack/driver-memory": "workspace:*",
30+
"@objectstack/driver-sql": "workspace:*",
31+
"@objectstack/driver-turso": "workspace:*",
2932
"typescript": "^6.0.2",
3033
"vitest": "^4.1.4"
3134
},

packages/runtime/src/environment-registry.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ export class DefaultEnvironmentDriverRegistry implements EnvironmentDriverRegist
153153
try {
154154
// Query control plane: SELECT ... FROM sys__environment WHERE hostname = ? LIMIT 1
155155
const result = await this.controlPlaneDriver.find('environment', {
156+
object: 'environment',
156157
where: { hostname: host },
157158
limit: 1,
158159
});
@@ -181,6 +182,7 @@ export class DefaultEnvironmentDriverRegistry implements EnvironmentDriverRegist
181182
try {
182183
// Query control plane: SELECT ... FROM sys__environment WHERE id = ? LIMIT 1
183184
const result = await this.controlPlaneDriver.find('environment', {
185+
object: 'environment',
184186
where: { id: environmentId },
185187
limit: 1,
186188
});
@@ -219,6 +221,7 @@ export class DefaultEnvironmentDriverRegistry implements EnvironmentDriverRegist
219221

220222
// Fetch active credential
221223
const credResult = await this.controlPlaneDriver.find('database_credential', {
224+
object: 'database_credential',
222225
where: { environment_id: environmentId, status: 'active' },
223226
limit: 1,
224227
});

0 commit comments

Comments
 (0)