Skip to content

Commit

Permalink
Merge pull request #63 from lamuertepeluda/master
Browse files Browse the repository at this point in the history
Fixed typo catagoryType --> categoryType in returned type
  • Loading branch information
EddyVerbruggen committed Jan 16, 2016
2 parents 593847a + 42fe37a commit c0f29e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ios/HealthKit.m
Original file line number Diff line number Diff line change
Expand Up @@ -773,8 +773,8 @@ - (void) querySampleType:(CDVInvokedUrlCommand*)command {
if ([sample isKindOfClass:[HKCategorySample class]]) {
HKCategorySample *csample = (HKCategorySample *)sample;
[entry setValue:[NSNumber numberWithLong:csample.value] forKey:HKPluginKeyValue];
[entry setValue:csample.categoryType.identifier forKey:@"catagoryType.identifier"];
[entry setValue:csample.categoryType.description forKey:@"catagoryType.description"];
[entry setValue:csample.categoryType.identifier forKey:@"categoryType.identifier"];
[entry setValue:csample.categoryType.description forKey:@"categoryType.description"];
[entry setValue:csample.UUID.UUIDString forKey:HKPluginKeyUUID];
[entry setValue:csample.source.name forKey:HKPluginKeySourceName];
[entry setValue:csample.source.bundleIdentifier forKey:HKPluginKeySourceBundleId];
Expand Down Expand Up @@ -1026,8 +1026,8 @@ - (void) queryCorrelationType:(CDVInvokedUrlCommand*)command {
if ([sample isKindOfClass:[HKCategorySample class]]) {
HKCategorySample *csample = (HKCategorySample *)sample;
[entry setValue:[NSNumber numberWithLong:csample.value] forKey:HKPluginKeyValue];
[entry setValue:csample.categoryType.identifier forKey:@"catagoryType.identifier"];
[entry setValue:csample.categoryType.description forKey:@"catagoryType.description"];
[entry setValue:csample.categoryType.identifier forKey:@"categoryType.identifier"];
[entry setValue:csample.categoryType.description forKey:@"categoryType.description"];
} else if ([sample isKindOfClass:[HKCorrelation class]]) {
HKCorrelation* correlation = (HKCorrelation*)sample;
[entry setValue:correlation.correlationType.identifier forKey:HKPluginKeyCorrelationType];
Expand Down

0 comments on commit c0f29e2

Please sign in to comment.