mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-13 14:31:10 -05:00
14 lines
427 B
TypeScript
14 lines
427 B
TypeScript
import { Prisma } from "@prisma/client";
|
|
import prisma from "prisma/client";
|
|
|
|
export type GetAllSalmonRunRotationsData = Prisma.PromiseReturnType<
|
|
typeof getAllSalmonRunRotations
|
|
>;
|
|
|
|
export const getAllSalmonRunRotations = async () =>
|
|
prisma.salmonRunRotation.findMany({
|
|
where: { startTime: { lt: new Date() } },
|
|
orderBy: { id: "desc" },
|
|
select: { id: true, startTime: true, weapons: true, stage: true },
|
|
});
|