Skip to content

Commit

Permalink
Remove userLogout AILTN event
Browse files Browse the repository at this point in the history
  • Loading branch information
Crebs committed Jan 27, 2025
1 parent fdb99ba commit 9c42fa1
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ - (void)send:(SFRestRequest *)request requestDelegate:(id<SFRestRequestDelegate>
NSMutableDictionary *attributes = [[NSMutableDictionary alloc] init];
attributes[@"errorCode"] = [NSNumber numberWithInteger:error.code];
attributes[@"errorDescription"] = error.localizedDescription;
[SFSDKEventBuilderHelper createAndStoreEvent:@"userLogout" userAccount:nil className:NSStringFromClass([strongSelf class]) attributes:attributes];
[[SFUserAccountManager sharedInstance] logout:SFLogoutReasonUnexpected];
}];
} else {
Expand Down Expand Up @@ -494,7 +493,6 @@ - (void)createAndStoreLogoutEvent:(NSError *)error user:(SFUserAccount*)user {
NSMutableDictionary *attributes = [[NSMutableDictionary alloc] init];
attributes[@"errorCode"] = [NSNumber numberWithInteger:error.code];
attributes[@"errorDescription"] = error.localizedDescription;
[SFSDKEventBuilderHelper createAndStoreEvent:@"userLogout" userAccount:user className:NSStringFromClass([self class]) attributes:attributes];
}

#pragma mark - SFRestRequest factory methods
Expand Down

0 comments on commit 9c42fa1

Please sign in to comment.