Adding documents origin.

This commit is contained in:
vdv committed 2023-02-12 21:23:30 +01:00
1 parent 9dacad9af3
commit cbd5eb1e04
2 files changed
+58 -3

No files matched your search

+3
View File
@@ -1,4 +1,5 @@
import { cloneDeep } from 'lodash';
import { state } from '../db-admin/health-legacy';
declare global {
var localDb: any;
@@ -25,6 +26,8 @@ export const put = async (
_id,
_rev: current._rev,
type,
shared: current.shared,
origin: current.origin ?? state().remoteUrl,
doc: update(current.doc),
};
await targetDb.put(putDoc);