minor updates

This commit is contained in:
Ren Amamiya
2023-06-18 11:24:57 +07:00
parent 3cc24dc8c1
commit 7ec284d4a5
15 changed files with 174 additions and 164 deletions

View File

@@ -262,11 +262,9 @@ export async function createReplyNote(
}
// get all channels
export async function getChannels(limit: number, offset: number) {
export async function getChannels() {
const db = await connect();
return await db.select(
`SELECT * FROM channels ORDER BY created_at DESC LIMIT "${limit}" OFFSET "${offset}";`,
);
return await db.select("SELECT * FROM channels ORDER BY created_at DESC;");
}
// get channel by id