Skip to content

Commit

Permalink
fix: fix setOnce identify operation (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
qingzhuozhen authored Feb 13, 2024
1 parent 0536666 commit 6934c89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down Expand Up @@ -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},
Expand Down
2 changes: 1 addition & 1 deletion Sources/Amplitude/Events/Identify.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6934c89

Please sign in to comment.