Skip to content

Commit 1444a10

Browse files
committed
fix(backend): handle property name differences in delete operation
1 parent dc443a7 commit 1444a10

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

services/backend/src/services/mcpInstallationService.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,13 +452,15 @@ export class McpInstallationService {
452452
)
453453
);
454454

455-
const deleted = result.changes > 0;
455+
// Handle different property names between SQLite (changes) and Turso (rowsAffected)
456+
const deleted = (result.changes || result.rowsAffected || 0) > 0;
456457

457458
this.logger.info({
458459
operation: 'delete_installation_result',
459460
installationId,
460461
teamId,
461462
changes: result.changes,
463+
rowsAffected: result.rowsAffected,
462464
deleted,
463465
result: result
464466
}, 'Delete operation completed');

0 commit comments

Comments
 (0)