Skip to content

Commit d85617b

Browse files
author
David Lenton
committed
Merged in add-edit-to-ask-responses (pull request auth0#25)
Fixes issue with edit not being set on responses
2 parents 8ba06cf + 6ea617e commit d85617b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

models/ask.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@ class Ask {
459459
}
460460
processAsk() {
461461
const _this = this;
462+
_this.anonymous = (_this.anonymous === "true" || _this.anonymous == 1 || _this.anonymous) ? true : false;
462463
_this.responded = (_this.responded === "true" || _this.responded == 1 || _this.responded) ? true : false;
463464
if (_this.ask_id) _this.ask_id = parseInt(_this.ask_id);
464465
if (_this.subject_id) _this.subject_id = parseInt(_this.subject_id);

routes/api/ask.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ module.exports = function (app) {
219219
asks.push(a);
220220
});
221221
return done(null, {
222-
records: result.records,
222+
records: asks,
223223
next: result.next
224224
});
225225
});

0 commit comments

Comments
 (0)