Skip to content
This repository was archived by the owner on Jan 31, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion queries/me/onboarding/writers.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ FROM (SELECT DISTINCT u.id,
WHERE "u->story".category::TEXT = ANY ($1)
ORDER BY
u.follower_count DESC
LIMIT 25)
LIMIT 25) AS data
10 changes: 5 additions & 5 deletions src/routes/v1/me/assets/get.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
use crate::{
AppState,
error::AppError,
middlewares::identity::identity::Identity,
AppState,
};
use actix_web::{
HttpResponse,
get,
web,
HttpResponse,
};
use actix_web_validator::QsQuery;
use serde::{
Expand Down Expand Up @@ -82,9 +82,9 @@ LIMIT $2 OFFSET $3
"#,
)
.bind(user_id)
// This route returns 15 items per call.
.bind(15_i16)
.bind((page * 15) as i16)
// This route returns 30 items per call.
.bind(30_i16)
.bind((page * 30) as i16)
.fetch_all(&data.db_pool)
.await?;

Expand Down
6 changes: 3 additions & 3 deletions src/routes/v1/me/gallery/get.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
use crate::{
AppState,
constants::pexels::PEXELS_API_URL,
error::AppError,
middlewares::identity::identity::Identity,
models::photo::PexelsResponse,
AppState,
};
use actix_web::{
HttpResponse,
get,
web,
HttpResponse,
};
use actix_web_validator::QsQuery;
use serde::{
Expand Down Expand Up @@ -60,7 +60,7 @@ async fn get(
"v1/curated"
}
))
.query(&[("per_page", 15), ("page", page)])
.query(&[("per_page", 30), ("page", page)])
.query(&[("query", search_query)])
.header(reqwest::header::AUTHORIZATION, pexels_api_key)
.send()
Expand Down
Loading