@codemem/server 0.33.0-alpha.2 → 0.33.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/routes/sync.d.ts.map +1 -1
- package/package.json +2 -2
- package/static/app.js +87 -41
package/dist/index.js
CHANGED
|
@@ -2606,9 +2606,11 @@ function redactSyncAttemptError(error) {
|
|
|
2606
2606
|
return "sync attempt failed; enable diagnostics for details";
|
|
2607
2607
|
}
|
|
2608
2608
|
function mapSyncAttemptRow(row, showDiag, addresses) {
|
|
2609
|
+
const redactedError = redactSyncAttemptError(row.error);
|
|
2609
2610
|
return {
|
|
2610
2611
|
...row,
|
|
2611
|
-
error: showDiag ? row.error :
|
|
2612
|
+
error: showDiag ? row.error : redactedError,
|
|
2613
|
+
error_redacted: !showDiag && redactedError != null,
|
|
2612
2614
|
status: attemptStatus(row),
|
|
2613
2615
|
address: showDiag && addresses?.length ? addresses[0] : null
|
|
2614
2616
|
};
|
|
@@ -3602,7 +3604,9 @@ function syncRoutes(getStore, getSyncRuntimeStatus) {
|
|
|
3602
3604
|
try {
|
|
3603
3605
|
const workspaceIdentity = optionalViewerStrictString(body, "workspace_identity") ?? "";
|
|
3604
3606
|
const project = optionalViewerStrictString(body, "project") ?? "";
|
|
3607
|
+
const [deviceId] = ensureDeviceIdentity(store.db, { keysDir: syncKeysDir() });
|
|
3605
3608
|
const result = reassignProjectScopeInventoryProject(store.db, {
|
|
3609
|
+
deviceId,
|
|
3606
3610
|
project,
|
|
3607
3611
|
workspaceIdentity
|
|
3608
3612
|
});
|