2023-12-11 21:29:46 -05:00
|
|
|
import { listQuerier } from "~/lib/server/dbHelpers";
|
2023-12-06 21:38:30 -05:00
|
|
|
import { Story } from "~/models/stories";
|
|
|
|
import { log } from "~/lib/server/logger";
|
|
|
|
|
|
|
|
export default eventHandler(async (ev) => {
|
|
|
|
const s = await listQuerier({}, ev.context, ev, 20, {
|
|
|
|
"chapters.posted": -1,
|
|
|
|
});
|
|
|
|
log.debug("s=>", { label: "fucking aids" });
|
|
|
|
return s;
|
|
|
|
});
|