Skip to content

Commit 87d7224

Browse files
committed
fix: syncSchemaFile expects a filesystem path
1 parent b5f0459 commit 87d7224

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

bridge/src/handlers/projectHandlers.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,10 @@ export class ProjectHandlers {
221221

222222
// Commit to Git if tracking
223223
try {
224-
await gitServiceInstance.syncSchemaFile(projectId);
224+
const projectDir = await projectStoreInstance.resolveProjectDir(projectId);
225+
if (projectDir) {
226+
await gitServiceInstance.syncSchemaFile(projectDir);
227+
}
225228
} catch (gitErr) {
226229
this.logger?.warn({ err: gitErr }, "Failed to auto-commit schema.json to Git");
227230
}

0 commit comments

Comments
 (0)