@yimingliao/cms 0.0.70 → 0.0.71

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.
@@ -2262,11 +2262,9 @@ declare function createPostFindFullAction(ctx: ActionContext): (params: {
2262
2262
  isActive?: boolean;
2263
2263
  topicSlug?: string;
2264
2264
  }) => Promise<Result<{
2265
- post: {
2266
- post: PostFull | null;
2267
- prev: PostListCard | null;
2268
- next: PostListCard | null;
2269
- };
2265
+ post: PostFull | null;
2266
+ prev: PostListCard | null;
2267
+ next: PostListCard | null;
2270
2268
  }>>;
2271
2269
 
2272
2270
  declare function createPostFindListCardsAction(ctx: ActionContext): (params: {
@@ -3955,7 +3955,7 @@ function createPostFindFullAction(ctx) {
3955
3955
  const found = await postQueryRepository.findFull(params);
3956
3956
  if (!found) throw ServerError.notFound();
3957
3957
  return {
3958
- data: { post: found }
3958
+ data: found
3959
3959
  };
3960
3960
  },
3961
3961
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yimingliao/cms",
3
- "version": "0.0.70",
3
+ "version": "0.0.71",
4
4
  "author": "Yiming Liao",
5
5
  "license": "MIT",
6
6
  "type": "module",