Minor edits (#196)

* Add command to delete last fine tune

* Change ids in seeded dashboard

* Change fine tune icon
This commit is contained in:
arcticfly
2023-08-27 19:53:02 -06:00
committed by GitHub
parent fa87887e91
commit 55f2be861e
4 changed files with 25 additions and 13 deletions

View File

@@ -0,0 +1,12 @@
import { prisma } from "~/server/db";
// delete most recent fineTune
const mostRecentFineTune = await prisma.fineTune.findFirst({
orderBy: { createdAt: "desc" },
});
if (mostRecentFineTune) {
await prisma.fineTune.delete({
where: { id: mostRecentFineTune.id },
});
}