Skip to content

Commit 478b7c6

Browse files
Copilothotlong
andcommitted
Fix: Apply query normalization in RemoteDriver.findOne()
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent dbc9b64 commit 478b7c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/drivers/sdk/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ export class RemoteDriver implements Driver {
203203
}
204204

205205
async findOne(objectName: string, id: string | number, query?: any, options?: any): Promise<any> {
206-
return this.request('findOne', objectName, { id, query }); // Note: args format must match server expectation
206+
const normalizedQuery = query ? this.normalizeQuery(query) : undefined;
207+
return this.request('findOne', objectName, { id, query: normalizedQuery }); // Note: args format must match server expectation
207208
}
208209

209210
async create(objectName: string, data: any, options?: any): Promise<any> {

0 commit comments

Comments
 (0)