☙◦ The Tablet ❀ GamerGirlandCo ◦❧
088232f750
create an index file which exports the functions we need in one accessible place
12 lines
330 B
TypeScript
12 lines
330 B
TypeScript
import { listQuerier } from "~/lib/server/dbHelpers";
|
|
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;
|
|
});
|