much cleaner sorting logic

This commit is contained in:
Daniel
2023-06-14 08:10:23 +03:30
parent 8d094f320a
commit 6323badbaf
16 changed files with 135 additions and 282 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ export default async function postLink(
},
})),
},
title,
description: title,
},
include: { tags: true, collection: true },
});
+1 -1
View File
@@ -14,7 +14,7 @@ export default async function getCollection(collectionId: number) {
id: true,
name: true,
url: true,
title: true,
description: true,
collectionId: true,
createdAt: true,
},