@yimingliao/cms 0.0.72 → 0.0.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1811,14 +1811,13 @@ function createPostQueryRepository(prisma) {
1811
1811
  const where = buildWhere3(rest);
1812
1812
  if (!where) return { post: void 0, prev: void 0, next: void 0 };
1813
1813
  const baseWhere = {
1814
- ...where,
1815
1814
  // states
1816
1815
  ...isActive ? { isActive } : {},
1817
1816
  // relations
1818
1817
  ...topicSlug ? { topic: { slug: topicSlug } } : {}
1819
1818
  };
1820
1819
  const post = await prisma.post.findFirst({
1821
- where: baseWhere,
1820
+ where: { ...baseWhere, ...where },
1822
1821
  include: POST_FULL_INCLUDE
1823
1822
  });
1824
1823
  if (!post) return { post: void 0, prev: void 0, next: void 0 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yimingliao/cms",
3
- "version": "0.0.72",
3
+ "version": "0.0.73",
4
4
  "author": "Yiming Liao",
5
5
  "license": "MIT",
6
6
  "type": "module",