Fixed casing
Missed a few camel-to-Pascal case changes in document strings
This commit is contained in:
parent
e7fcd1676f
commit
8194649018
@ -122,9 +122,9 @@ let tryFindPostByPermalink conn webLogId permalink =
|
|||||||
/// Try to find a post by its prior permalink
|
/// Try to find a post by its prior permalink
|
||||||
let tryFindPostByPriorPermalink conn (webLogId : string) (permalink : string) =
|
let tryFindPostByPriorPermalink conn (webLogId : string) (permalink : string) =
|
||||||
r.Table(Table.Post)
|
r.Table(Table.Post)
|
||||||
.GetAll(webLogId).OptArg("index", "webLogId")
|
.GetAll(webLogId).OptArg("index", "WebLogId")
|
||||||
.Filter(fun p -> p.["priorPermalinks"].Contains(permalink).And(p.["status"].Eq(PostStatus.Published)))
|
.Filter(fun p -> p.["PriorPermalinks"].Contains(permalink).And(p.["Status"].Eq(PostStatus.Published)))
|
||||||
.Without("revisions")
|
.Without("Revisions")
|
||||||
.RunCursorAsync<Post>(conn)
|
.RunCursorAsync<Post>(conn)
|
||||||
|> await
|
|> await
|
||||||
|> Seq.tryHead
|
|> Seq.tryHead
|
||||||
|
@ -55,12 +55,9 @@ let private ensureIndexes cfg (indexes : (string * (string * (ReqlExpr -> obj) o
|
|||||||
indexes
|
indexes
|
||||||
|> List.iter ensureForTable
|
|> List.iter ensureForTable
|
||||||
|
|
||||||
/// Create an index on a single field
|
|
||||||
let private singleField (name : string) : obj = upcast (fun row -> (row :> ReqlExpr).[name])
|
|
||||||
|
|
||||||
/// Create an index on web log Id and the given field
|
/// Create an index on web log Id and the given field
|
||||||
let private webLogField (name : string) : (ReqlExpr -> obj) option =
|
let private webLogField (name : string) : (ReqlExpr -> obj) option =
|
||||||
Some <| fun row -> upcast r.Array(row.["webLogId"], row.[name])
|
Some <| fun row -> upcast r.Array(row.["WebLogId"], row.[name])
|
||||||
|
|
||||||
/// Ensure all the required indexes exist
|
/// Ensure all the required indexes exist
|
||||||
let private checkIndexes cfg =
|
let private checkIndexes cfg =
|
||||||
|
Loading…
Reference in New Issue
Block a user