Fix unmmatched api returning http next (#1364)

This commit is contained in:
Zoe Roux 2026-03-14 13:25:01 +01:00 committed by GitHub
parent 83d7866ddc
commit 4fbe15f2ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -586,7 +586,11 @@ export const videosReadH = new Elysia({ tags: ["videos"] })
)
.get(
"videos/unmatched",
async ({ query: { sort, query, limit, after }, request: { url } }) => {
async ({
query: { sort, query, limit, after },
headers,
request: { url },
}) => {
const ret = await db
.select()
.from(videos)
@ -609,7 +613,7 @@ export const videosReadH = new Elysia({ tags: ["videos"] })
)
.orderBy(...(query ? [] : sortToSql(sort)), videos.pk)
.limit(limit);
return createPage(ret, { url, sort, limit });
return createPage(ret, { url, sort, limit, headers });
},
{
detail: { description: "Get unknown/unmatched videos." },