Skip to content

Commit

Permalink
Switch resource query arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelCourtney committed Feb 28, 2024
1 parent 9f3d7b1 commit bb47162
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ data class AeriePostgresPlan(

/***/ class DatabaseError(message: String): Error(message)

override fun <V : Any, TL : CoalesceSegmentsOp<V, TL>> resource(ctor: (List<Segment<SerializedValue>>) -> TL, name: String): TL {
override fun <V : Any, TL : CoalesceSegmentsOp<V, TL>> resource(name: String, ctor: (List<Segment<SerializedValue>>) -> TL): TL {
val profileInfo = getProfileInfo(name)

segmentsStatement.clearParameters()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ interface Plan {
* @param ctor constructor of the profile, converting [SerializedValue]
* @param name string name of the resource
*/
fun <V: Any, TL: CoalesceSegmentsOp<V, TL>> resource(ctor: (List<Segment<SerializedValue>>) -> TL, name: String): TL
fun <V: Any, TL: CoalesceSegmentsOp<V, TL>> resource(name: String, ctor: (List<Segment<SerializedValue>>) -> TL): TL

/** Query all activity instances. */
fun allActivityInstances(): Instances<AnyInstance>
Expand Down

0 comments on commit bb47162

Please sign in to comment.