Adding documents origin.
This commit is contained in:
1 parent
9dacad9af3
commit
cbd5eb1e04
2 files changed
+58
-3
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user