Skip to content
This repository was archived by the owner on Jan 21, 2021. It is now read-only.

Commit

Permalink
Merge branch 'path' into zeir_updates_to_omrs
Browse files Browse the repository at this point in the history
  • Loading branch information
manutarus authored Apr 25, 2018
2 parents 0a11898 + 8cb7cf8 commit c74b620
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public List<Client> findByFieldValue(String field, List<String> ids) {
return lcr.getByFieldValue(field, ids);
}

@View(name = "clients_not_in_OpenMRS", map = "function(doc) { if (doc.type === 'Client' && doc.serverVersion) { var noId = true; for(var key in doc.identifiers) {if(key == 'OPENMRS_UUID') {noId = false;}}if(noId){emit([doc.serverVersion], null); }} }")
@View(name = "clients_not_in_OpenMRS", map = "function(doc) { if (doc.type === 'Client' && doc.serverVersion) { var noId = true; for(var key in doc.identifiers) {if(key == 'OPENMRS_UUID' && doc.identifiers.OPENMRS_UUID !== null) {noId = false;}}if(noId){emit([doc.serverVersion], null); }} }")
public List<Client> notInOpenMRSByServerVersion(long serverVersion, Calendar calendar) {
long serverStartKey = serverVersion + 1;
long serverEndKey = calendar.getTimeInMillis();
Expand Down

0 comments on commit c74b620

Please sign in to comment.