Skip to content

Commit

Permalink
fix: update or create settings
Browse files Browse the repository at this point in the history
  • Loading branch information
danestves committed Dec 22, 2020
1 parent 84dc8b0 commit be947f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "strapi-plugin-preview-content",
"version": "0.1.2",
"version": "0.1.3",
"description": "Preview your content with custom URL.",
"main": "admin/main/index.js",
"strapi": {
Expand Down
3 changes: 2 additions & 1 deletion src/controllers/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ module.exports = {
* @param ctx
*/
async createOrUpdate(ctx: Context) {
const data = ctx.body;
// @ts-ignore
const data = ctx.request.body;
// @ts-ignore
const results = await strapi
.query("plugins::preview-content.settings")
Expand Down

0 comments on commit be947f5

Please sign in to comment.