mirror of
https://github.com/colanode/colanode.git
synced 2025-12-29 00:25:03 +01:00
Small fixes
This commit is contained in:
@@ -107,7 +107,6 @@ const createNodesTable: Migration = {
|
||||
|
||||
const createClosureTable: Migration = {
|
||||
up: async (db) => {
|
||||
// Create closure table for storing paths between nodes
|
||||
await db.schema
|
||||
.createTable('node_paths')
|
||||
.addColumn('ancestor_id', 'varchar(30)', (col) =>
|
||||
|
||||
@@ -125,16 +125,16 @@ syncRouter.post(
|
||||
}
|
||||
|
||||
const results: ServerSyncChangeResult[] = [];
|
||||
for (const mutation of input.changes) {
|
||||
for (const change of input.changes) {
|
||||
try {
|
||||
const result = await handleLocalChange(workspaceUser, mutation);
|
||||
const result = await handleLocalChange(workspaceUser, change);
|
||||
results.push({
|
||||
id: mutation.id,
|
||||
id: change.id,
|
||||
status: result.status,
|
||||
});
|
||||
} catch (error) {
|
||||
results.push({
|
||||
id: mutation.id,
|
||||
id: change.id,
|
||||
status: 'error',
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user