We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8ba06cf + 6ea617e commit d85617bCopy full SHA for d85617b
models/ask.js
@@ -459,6 +459,7 @@ class Ask {
459
}
460
processAsk() {
461
const _this = this;
462
+ _this.anonymous = (_this.anonymous === "true" || _this.anonymous == 1 || _this.anonymous) ? true : false;
463
_this.responded = (_this.responded === "true" || _this.responded == 1 || _this.responded) ? true : false;
464
if (_this.ask_id) _this.ask_id = parseInt(_this.ask_id);
465
if (_this.subject_id) _this.subject_id = parseInt(_this.subject_id);
routes/api/ask.js
@@ -219,7 +219,7 @@ module.exports = function (app) {
219
asks.push(a);
220
});
221
return done(null, {
222
- records: result.records,
+ records: asks,
223
next: result.next
224
225
0 commit comments