This commit is contained in:
ntr committed 2022-09-11 21:16:33 +10:00
1 parent 111f690482
commit 2c66c47163
14 files changed
+168 -58

No files matched your search

+3 -3
View File
@@ -31,7 +31,7 @@ export interface Pg {
bundleCandidates: () => Promise<Listing[][]>,
offersCreate: (offers: Offer[]) => Promise<Offer[]>,
offerSetStatus: (id: UUID, status: Status) => Promise<Offer>,
offerStatusSet: (id: UUID, status: Status) => Promise<Offer>,
offersAdmin: () => Promise<Offer[]>,
}
@@ -258,7 +258,7 @@ export default function createPg(log: Log, prisma: PrismaClient): Pg {
);
}
async function offerSetStatus(id: UUID, status: Status) {
async function offerStatusSet(id: UUID, status: Status) {
return prisma.offer.update({
where: { id: id },
data: { status },
@@ -294,7 +294,7 @@ export default function createPg(log: Log, prisma: PrismaClient): Pg {
bundleCandidates,
offersCreate,
offerSetStatus,
offerStatusSet,
offersAdmin,
};
}