Merge pull request 'Fixed error on posting admin comment' (#205) from Application-Admin-Comment-Fix into main
Some checks failed
Testing Site CD / Update Development (push) Has been cancelled
Some checks failed
Testing Site CD / Update Development (push) Has been cancelled
Reviewed-on: #205
This commit was merged in pull request #205.
This commit is contained in:
@@ -396,11 +396,11 @@ VALUES(?, ?, ?, 1);`
|
|||||||
INNER JOIN members AS member ON member.id = app.poster_id
|
INNER JOIN members AS member ON member.id = app.poster_id
|
||||||
WHERE app.id = ?; `;
|
WHERE app.id = ?; `;
|
||||||
const comment = await conn.query(getSQL, [result.insertId])
|
const comment = await conn.query(getSQL, [result.insertId])
|
||||||
audit.record('application', 'comment_added', { actorId: user.id, targetId: appID }, { commentId: result.insertId });
|
audit.record('application', 'comment_added', { actorId: user.id, targetId: appID }, { commentId: Number(result.insertId) });
|
||||||
logger.info('app', "Admin application comment posted", {
|
logger.info('app', "Admin application comment posted", {
|
||||||
application: appID,
|
application: appID,
|
||||||
poster: user.id,
|
poster: user.id,
|
||||||
comment: result.insertId,
|
comment: Number(result.insertId),
|
||||||
})
|
})
|
||||||
|
|
||||||
res.status(201).json(comment[0]);
|
res.status(201).json(comment[0]);
|
||||||
|
|||||||
Reference in New Issue
Block a user