rename following to daily page

This commit is contained in:
Ren Amamiya
2023-05-04 22:04:43 +07:00
parent 648b0fc4e8
commit 56885a4193
6 changed files with 132 additions and 3 deletions

View File

@@ -95,6 +95,13 @@ export async function getNotes(time: number, limit: number, offset: number) {
return notes;
}
// get all note authors
export async function getNoteAuthors() {
const db = await connect();
const result = await db.select(`SELECT DISTINCT pubkey FROM notes ORDER BY created_at DESC`);
return result;
}
// get note by id
export async function getNoteByID(event_id: string) {
const db = await connect();