Just using function syntactic sugar var hello = (name) => {....}
And this makes code clear in async
flow
async.waterfall([
(next) => {
next(err, 'name')
},
(name, next) => {
next(err, 'final')
}
], callback)
Just using function syntactic sugar var hello = (name) => {....}
And this makes code clear in async
flow
async.waterfall([
(next) => {
next(err, 'name')
},
(name, next) => {
next(err, 'final')
}
], callback)
I am working on a search plugin.
There're two filters available for topic & post :
plugin.search = function(data, callback) {
winston.info('enter search')
winston.info(data)
return callback(null, []);
};
plugin.searchTopic = function(data, callback) {
winston.info('enter topic search')
winston.info(data)
return callback(null, []);
};
now I can see the log in search
after I search something, as well as advanced search. But searchTopic
never show.
Can someone tell me how to invoke this filter ?
@pichalite cheers! it works
As Chinese Support Portal always be unavailable. Could we change the address to another host ?
I have an ECS server on aliyun(supports robust network env in China)
with 4 cores, 16GB RAM, 2Mbps. And the expiry date is 2017-06-17, so I could guarantee it could serve approximate one year at least.
I am using https://www.npmjs.com/package/nodebb-plugin-katex
to render mathjax script. It works good so far.
@baris said in What's the name of this plugin ?:
Are you using persona? This is only added to persona so far.
Hi, @baris caused by my fault since I have not migrate the latest persona template. Everything works well now. thanks!