Skip to content

Commit

Permalink
chore: update interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaviilee committed Feb 2, 2024
1 parent 952966e commit e452dcb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"dependencies": {
"@jx3box/jx3box-comment-ui": "^1.8.7",
"@jx3box/jx3box-common": "^8.2.4",
"@jx3box/jx3box-common": "^8.2.7",
"@jx3box/jx3box-common-ui": "^8.2.6",
"@jx3box/jx3box-data": "^3.5.6",
"@jx3box/jx3box-editor": "^2.1.7",
Expand Down
10 changes: 2 additions & 8 deletions src/service/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,8 @@ function getMyPost(params) {
}

function getPosts(params) {
let query = {
type: "bps",
};
if (params) {
query = Object.assign(query, params);
}
return $cms().get("/api/cms/posts", {
params: query,
return $cms().get("/api/cms/posts/bps", {
params,
});
}
function getPost(id) {
Expand Down

0 comments on commit e452dcb

Please sign in to comment.