trace in addPostData

v1.18.x
barisusakli 11 years ago
parent 126b1c4f4c
commit 0d5605ab35

@ -3,6 +3,7 @@
'use strict';
var async = require('async'),
winston = require('winston'),
db = require('../database'),
user = require('../user'),
@ -37,6 +38,10 @@ module.exports = function(Topics) {
};
Topics.addPostData = function(postData, uid, callback) {
if (postData && postData.length > 50) {
var e = new Error('too many keys');
winston.warn('[ADD POST DATA] ' + postData.length, e.stack);
}
var pids = postData.map(function(post) {
return post && post.pid;
});

Loading…
Cancel
Save