Skip to content

Commit 65563f1

Browse files
Copilothotlong
andcommitted
fix: use unknown instead of any for error type in syncRegisteredSchemas
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com> Agent-Logs-Url: https://github.com/objectstack-ai/spec/sessions/a6a76ea8-5b90-40cb-88c8-26a9cb27cc6b
1 parent 5e5482c commit 65563f1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/objectql/src/plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,11 +277,11 @@ export class ObjectQLPlugin implements Plugin {
277277
try {
278278
await driver.syncSchema(obj.name, obj);
279279
synced++;
280-
} catch (e: any) {
280+
} catch (e: unknown) {
281281
ctx.logger.warn('Failed to sync schema for object', {
282282
object: obj.name,
283283
driver: driver.name,
284-
error: e.message,
284+
error: e instanceof Error ? e.message : String(e),
285285
});
286286
}
287287
}

0 commit comments

Comments
 (0)