Skip to content

Commit 418159c

Browse files
Fix type of counter REST operations amount in test helper
Mistake in fa255c1.
1 parent 4ab05e4 commit 418159c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Tests/AblyLiveObjectsTests/JS Integration Tests/ObjectsHelper.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ final class ObjectsHelper: Sendable {
445445
}
446446

447447
/// Creates a counter create REST operation
448-
func counterCreateRestOp(objectId: String? = nil, nonce: String? = nil, number: Int? = nil) -> [String: JSONValue] {
448+
func counterCreateRestOp(objectId: String? = nil, nonce: String? = nil, number: Double? = nil) -> [String: JSONValue] {
449449
var opBody: [String: JSONValue] = [
450450
"operation": .string(Actions.counterCreate.stringValue),
451451
]
@@ -463,7 +463,7 @@ final class ObjectsHelper: Sendable {
463463
}
464464

465465
/// Creates a counter increment REST operation
466-
func counterIncRestOp(objectId: String, number: Int) -> [String: JSONValue] {
466+
func counterIncRestOp(objectId: String, number: Double) -> [String: JSONValue] {
467467
[
468468
"operation": .string(Actions.counterInc.stringValue),
469469
"objectId": .string(objectId),

0 commit comments

Comments
 (0)