mirror of
https://github.com/wassname/talk.git
synced 2026-08-10 12:41:02 +08:00
Remove function keyword
This commit is contained in:
@@ -65,7 +65,7 @@ router.get('/status/pending', (req, res, next) => {
|
||||
|
||||
Setting
|
||||
.getModerationSetting()
|
||||
.then(function({moderation}){
|
||||
.then(({moderation}) => {
|
||||
let moderationValue = req.query.moderation;
|
||||
if (typeof moderationValue === 'undefined' || moderationValue === undefined) {
|
||||
moderationValue = moderation;
|
||||
|
||||
Reference in New Issue
Block a user