fix: specify generic
Some checks failed
ci / build (6.0.x) (push) Has been cancelled
ci / build (8.0.x) (push) Has been cancelled

This commit is contained in:
Kyle Ratti 2024-09-05 23:22:02 -04:00
parent 7eed044713
commit 6df46d3c2b
No known key found for this signature in database
GPG Key ID: 4D429B6287C68DD9
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ let querySingle<'a> (connection : IDatabaseConnection<ReadOnly>) (cancellationTo
}
let tryQueryFirst<'a> (connection : ReadOnly IDatabaseConnection) (cancellationToken : CancellationToken) (sql : string) (parms : (string * obj) seq) = task {
let! result = connection.TryQueryFirst(sql, parms |> toKeyValuePair, cancellationToken)
let! result = connection.TryQueryFirst<'a>(sql, parms |> toKeyValuePair, cancellationToken)
return result |> Option.fromMaybe
}

View File

@ -24,7 +24,7 @@ let querySingle<'a> (connection : IDatabaseConnection<ReadWrite>) (cancellationT
}
let tryQueryFirst<'a> (connection : ReadOnly IDatabaseConnection) (cancellationToken : CancellationToken) (sql : string) (parms : (string * obj) seq) = task {
let! result = connection.TryQueryFirst(sql, parms |> toKeyValuePair, cancellationToken)
let! result = connection.TryQueryFirst<'a>(sql, parms |> toKeyValuePair, cancellationToken)
return result |> Option.fromMaybe
}