prettier + clang-format.

This commit is contained in:
2024-04-11 18:36:31 -04:00
parent a7922ff44e
commit 1ceeed1007
7 changed files with 277 additions and 1667 deletions

View File

@ -13,14 +13,17 @@ function get_emojis() {
}
async function get_recent(author) {
let recent = await tfrpc.rpc.query(`
let recent = await tfrpc.rpc.query(
`
SELECT DISTINCT content ->> '$.vote.expression' AS value
FROM messages
WHERE author = ? AND
content ->> '$.type' = 'vote'
ORDER BY timestamp DESC LIMIT 10
`, [author]);
return recent.map(x => x.value);
`,
[author]
);
return recent.map((x) => x.value);
}
export async function picker(callback, anchor, author) {