minor fixes

This commit is contained in:
Ren Amamiya
2023-03-19 17:32:00 +07:00
parent fe6d510e18
commit 1c9420f370
4 changed files with 5 additions and 14 deletions

View File

@@ -72,11 +72,7 @@ export default function Page() {
useEffect(() => {
const getData = async () => {
const result = await db.select(
`SELECT * FROM cache_notes WHERE created_at <= ${dateToUnix(now.current)} ORDER BY created_at DESC LIMIT ${
limit.current
}`
);
const result = await db.select(`SELECT * FROM cache_notes ORDER BY created_at DESC LIMIT ${limit.current}`);
if (result.length > 0) {
setData(result);
} else {