feat: replicate thread membership and record merges (#46)
feat: replicate thread membership and record merges (#46) Co-authored-by: David Gwilliam <dhgwilliam@gmail.com> Co-committed-by: David Gwilliam <dhgwilliam@gmail.com>
This commit was merged in pull request #46.
This commit is contained in:
@@ -26,5 +26,12 @@ func Reconcile(kdb *db.KnoxDB) (int, int, error) {
|
||||
} else if applied > 0 {
|
||||
created += applied
|
||||
}
|
||||
// Membership last: links resolve against threads, so they need both the
|
||||
// derived and the replicated threads to exist first.
|
||||
if applied, err := kdb.ProjectLinks(); err != nil {
|
||||
return created, linked, fmt.Errorf("project links: %w", err)
|
||||
} else {
|
||||
linked += applied
|
||||
}
|
||||
return created, linked, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user