You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let pool = ctx.data::<Arc<PgPool>>().expect("Pool must be in context.");
84
84
85
85
// The below is based on the classic 'islands and gaps' problem, adapted to fit our needs.
@@ -125,7 +125,7 @@ impl StatusInfo {
125
125
.fetch_one(pool.as_ref())
126
126
.await?;
127
127
128
-
Ok(result)
128
+
Ok(Some(result))
129
129
}
130
130
131
131
asyncfnupdate_count(
@@ -136,7 +136,7 @@ impl StatusInfo {
136
136
) -> Result<i64>{
137
137
let pool = ctx.data::<Arc<PgPool>>().expect("Pool must be in context.");
138
138
139
-
let result :i64 = sqlx::query_scalar("SELECT count(*) AS updatecount FROM statusupdatehistory WHERE is_updated = TRUE and member_id=$1 and date BETWEEN $2 and $3;")
139
+
let result :i64 = sqlx::query_scalar("SELECT count(*) AS updatecount FROM statusupdatehistory WHERE is_sent = TRUE and member_id=$1 and date BETWEEN $2 and $3;")
0 commit comments