@tiledesk/tiledesk-server 2.19.9 → 2.19.10
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.
- package/CHANGELOG.md +3 -0
- package/package.json +1 -1
- package/routes/answered.js +2 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/routes/answered.js
CHANGED
|
@@ -3,6 +3,7 @@ const router = express.Router();
|
|
|
3
3
|
const { Namespace, AnsweredQuestion } = require('../models/kb_setting');
|
|
4
4
|
const winston = require('../config/winston');
|
|
5
5
|
var fastCsv = require('fast-csv');
|
|
6
|
+
const kbQuestionService = require('../services/kbQuestionService');
|
|
6
7
|
|
|
7
8
|
// Add a new unanswerd question
|
|
8
9
|
router.post('/', async (req, res) => {
|
|
@@ -11,7 +12,7 @@ router.post('/', async (req, res) => {
|
|
|
11
12
|
const data = req.body;
|
|
12
13
|
const id_project = req.projectid;
|
|
13
14
|
|
|
14
|
-
const savedQuestion = await
|
|
15
|
+
const savedQuestion = await kbQuestionService.createAnsweredQuestion(
|
|
15
16
|
id_project,
|
|
16
17
|
data
|
|
17
18
|
);
|