Skip to content

Commit

Permalink
#1161 | Bump models version. Fix null pointer error in getAllSyncStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
Suhas Vishwanath committed Nov 1, 2023
1 parent 89048dd commit 17e0cae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/openchs-android/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"lodash": "4.17.21",
"moment": "2.29.4",
"native-base": "3.4.9",
"openchs-models": "1.30.83",
"openchs-models": "1.30.85",
"prop-types": "15.8.1",
"react": "18.2.0",
"react-native": "0.72.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,12 @@ class EntitySyncStatusService extends BaseService {
const entities = _.map(this.findAllByUniqueEntityName(), ({entityName, loadedSince}) => {
const isNeverSynced = loadedSince.getTime() === EntitySyncStatus.REALLY_OLD_DATE.getTime();
const queuedItemCount = entityQueueService.getQueuedItemCount(entityName);
const emd = EntityMetaData.findByName(entityName);
return {
entityName: entityName,
loadedSince: isNeverSynced ? 'Never or Not Applicable' : moment(loadedSince).format("DD-MM-YYYY HH:MM:SS"),
queuedCount: queuedItemCount,
type: EntityMetaData.findByName(entityName).type
type: emd && emd.type
}
});
const mediaQueueService = this.getService(MediaQueueService);
Expand Down

0 comments on commit 17e0cae

Please sign in to comment.