Skip to content

Commit

Permalink
Merge branch '7.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
petmongrels committed Feb 13, 2024
2 parents 856ad85 + f955285 commit 305dd0b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
14 changes: 7 additions & 7 deletions packages/openchs-android/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/openchs-android/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"lodash": "4.17.21",
"moment": "2.29.4",
"native-base": "3.4.9",
"openchs-models": "1.31.33",
"openchs-models": "1.31.34",
"prop-types": "15.8.1",
"react": "18.2.0",
"react-native": "0.72.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/openchs-android/src/service/IndividualService.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class IndividualService extends BaseService {
db.create(Individual.schema.name, {
uuid: individual.uuid,
observations: individual.observations
}, true);
}, Realm.UpdateMode.Modified);
db.create(EntityQueue.schema.name, EntityQueue.create(individual, Individual.schema.name));
});
}
Expand Down
1 change: 1 addition & 0 deletions packages/openchs-android/src/service/MediaQueueService.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ class MediaQueueService extends BaseService {
})
.then(() => this.uploadToUrl(uploadUrl, mediaQueueItem))
.then(() => this.replaceObservation(mediaQueueItem, uploadUrl))
.then(() => this.popItem(mediaQueueItem))
.catch((error) => {
General.logError("MediaQueueService", `Error while uploading ${mediaQueueItem.uuid} - ${mediaQueueItem.fileName}`);
General.logError("MediaQueueService", error);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class ProgramEnrolmentService extends BaseService {
db.create(ProgramEnrolment.schema.name, {
uuid: programEnrolment.uuid,
observations: programEnrolment.observations
}, true);
}, Realm.UpdateMode.Modified);
db.create(EntityQueue.schema.name, EntityQueue.create(programEnrolment, ProgramEnrolment.schema.name));
});
}
Expand Down

0 comments on commit 305dd0b

Please sign in to comment.