@@ -83,11 +83,13 @@ extension MongoCollection {
8383 options: ReplaceOptions ? = nil ,
8484 session: ClientSession ? = nil
8585 ) throws -> UpdateResult ? {
86- return try self . asyncColl. replaceOne ( filter: filter,
87- replacement: replacement,
88- options: options,
89- session: session? . asyncSession)
90- . wait ( )
86+ return try self . asyncColl. replaceOne (
87+ filter: filter,
88+ replacement: replacement,
89+ options: options,
90+ session: session? . asyncSession
91+ )
92+ . wait ( )
9193 }
9294
9395 /**
@@ -116,11 +118,13 @@ extension MongoCollection {
116118 options: UpdateOptions ? = nil ,
117119 session: ClientSession ? = nil
118120 ) throws -> UpdateResult ? {
119- return try self . asyncColl. updateOne ( filter: filter,
120- update: update,
121- options: options,
122- session: session? . asyncSession)
123- . wait ( )
121+ return try self . asyncColl. updateOne (
122+ filter: filter,
123+ update: update,
124+ options: options,
125+ session: session? . asyncSession
126+ )
127+ . wait ( )
124128 }
125129
126130 /**
@@ -149,11 +153,13 @@ extension MongoCollection {
149153 options: UpdateOptions ? = nil ,
150154 session: ClientSession ? = nil
151155 ) throws -> UpdateResult ? {
152- return try self . asyncColl. updateMany ( filter: filter,
153- update: update,
154- options: options,
155- session: session? . asyncSession)
156- . wait ( )
156+ return try self . asyncColl. updateMany (
157+ filter: filter,
158+ update: update,
159+ options: options,
160+ session: session? . asyncSession
161+ )
162+ . wait ( )
157163 }
158164
159165 /**
0 commit comments