diff --git a/Examples/AmplitudeObjCExample/AmplitudeObjCExampleTests/AmplitudeObjCExampleTests.m b/Examples/AmplitudeObjCExample/AmplitudeObjCExampleTests/AmplitudeObjCExampleTests.m index b3387777..e0f9065b 100644 --- a/Examples/AmplitudeObjCExample/AmplitudeObjCExampleTests/AmplitudeObjCExampleTests.m +++ b/Examples/AmplitudeObjCExample/AmplitudeObjCExampleTests/AmplitudeObjCExampleTests.m @@ -66,7 +66,7 @@ - (void)testIdentify { NSDictionary* expectedUserProperties = @{ @"$set": @{@"user-string-prop": @"string-value"}, - @"$set_once": @{@"user-int-prop": @111}, + @"$setOnce": @{@"user-int-prop": @111}, @"$append": @{@"user-number-prop": @123.4}, @"$prepend": @{@"user-bool-prop": @true}, @"$add": @{@"user-sum-prop": @7}, @@ -142,7 +142,7 @@ - (void)testGroupIdentify { NSDictionary* expectedGroupProperties = @{ @"$set": @{@"user-string-prop": @"string-value"}, - @"$set_once": @{@"user-int-prop": @111}, + @"$setOnce": @{@"user-int-prop": @111}, @"$append": @{@"user-number-prop": @123.4}, @"$prepend": @{@"user-bool-prop": @true}, @"$add": @{@"user-sum-prop": @7}, diff --git a/Sources/Amplitude/Events/Identify.swift b/Sources/Amplitude/Events/Identify.swift index dc27b729..d2f77adb 100644 --- a/Sources/Amplitude/Events/Identify.swift +++ b/Sources/Amplitude/Events/Identify.swift @@ -12,7 +12,7 @@ open class Identify { enum Operation: String { case SET = "$set" - case SET_ONCE = "$set_once" + case SET_ONCE = "$setOnce" case ADD = "$add" case APPEND = "$append" case CLEAR_ALL = "$clearAll"