Skip to content

Commit

Permalink
add to backend
Browse files Browse the repository at this point in the history
  • Loading branch information
shantinghou committed Sep 19, 2024
1 parent 205df15 commit 6150430
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions config 3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"url": "http://localhost:4567",
"secret": "17e9765b-d7b5-4b79-84d9-16bcf08051fa",
"database": "redis",
"redis": {
"host": "127.0.0.1",
"port": "6379",
"password": "",
"database": "0"
},
"port": "4567",
"test_database": {
"host": "127.0.0.1",
"port": "6379",
"password": "",
"database": "1"
}
}
1 change: 1 addition & 0 deletions src/topics/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ module.exports = function (Topics) {
lastposttime: 0,
postcount: 0,
viewcount: 0,
isannonymous: data.postAnnonymous,
};

if (Array.isArray(data.tags) && data.tags.length) {
Expand Down

0 comments on commit 6150430

Please sign in to comment.