added seed script + renamed table fields + added field

This commit is contained in:
daniel31x13
2023-12-22 13:13:43 -05:00
parent 385bdc2343
commit 98106b9f25
15 changed files with 957 additions and 370 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ export default async function Index(req: NextApiRequest, res: NextApiResponse) {
// await prisma.link.update({
// where: { id: linkId },
// data: {
// screenshotPath: `archives/${collectionPermissions?.id}/${
// image: `archives/${collectionPermissions?.id}/${
// linkId + suffix
// }`,
// lastPreserved: new Date().toISOString(),
File diff suppressed because it is too large Load Diff
+3 -3
View File
@@ -73,9 +73,9 @@ const deleteArchivedFiles = async (link: Link & { collection: Collection }) => {
id: link.id,
},
data: {
screenshotPath: null,
pdfPath: null,
readabilityPath: null,
image: null,
pdf: null,
readable: null,
},
});