Skip to content

Commit

Permalink
fix: assignment to const
Browse files Browse the repository at this point in the history
  • Loading branch information
oplik0 committed Jul 30, 2021
1 parent 3c4aa42 commit aa79e67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ plugin.createPost = async function ({ post, data }) {
return { post, data };
};
plugin.editPost = async function ({ post, data }) {
const postData = await getPostData(data.pid);
let postData = await getPostData(data.pid);
postData = await parseCommands(postData);
post.content = post.content.replace(/^\s*\/roll/g, () => "/\u200Broll");
return { post, data };
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nodebb-plugin-ws-dice",
"version": "1.0.1",
"version": "1.0.2",
"description": "A dice plugin integrated with topic events",
"main": "library.js",
"scripts": {
Expand Down

0 comments on commit aa79e67

Please sign in to comment.