minor changes and improvements
This commit is contained in:
+6
-1
@@ -32,7 +32,12 @@ export default async function archive(
|
||||
|
||||
if (linkExists) {
|
||||
await Promise.all([
|
||||
page.pdf({ path: archivePath + ".pdf", format: "a4" }),
|
||||
page.pdf({
|
||||
path: archivePath + ".pdf",
|
||||
format: "a4",
|
||||
printBackground: true,
|
||||
margin: { top: "15px", bottom: "15px" },
|
||||
}),
|
||||
page.screenshot({ fullPage: true, path: archivePath + ".png" }),
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { prisma } from "@/lib/api/db";
|
||||
|
||||
export default async function getTags(userId: number) {
|
||||
// remove empty tags
|
||||
// Remove empty tags
|
||||
await prisma.tag.deleteMany({
|
||||
where: {
|
||||
ownerId: userId,
|
||||
@@ -30,11 +30,11 @@ export default async function getTags(userId: number) {
|
||||
},
|
||||
],
|
||||
},
|
||||
orderBy: {
|
||||
links: {
|
||||
_count: "desc",
|
||||
},
|
||||
},
|
||||
// orderBy: {
|
||||
// links: {
|
||||
// _count: "desc",
|
||||
// },
|
||||
// },
|
||||
});
|
||||
|
||||
return { response: tags, status: 200 };
|
||||
|
||||
Reference in New Issue
Block a user