Skip to content

Commit 0f5a67b

Browse files
committed
change updateCart request body to constant
1 parent 4a1e1b2 commit 0f5a67b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift-sdk/Internal/RequestCreator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ struct RequestCreator {
102102

103103
let itemsToSerialize = items.map { $0.toDictionary() }
104104

105-
var body: [String: Any] = [JsonKey.Commerce.user: apiUserDict,
105+
let body: [String: Any] = [JsonKey.Commerce.user: apiUserDict,
106106
JsonKey.Commerce.items: itemsToSerialize]
107107

108108
return .success(.post(createPostRequest(path: Const.Path.updateCart, body: body)))

0 commit comments

Comments
 (0)