mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
requester should resolve response.text if response is not json, better tests for csv export
This commit is contained in:
@@ -280,7 +280,7 @@ api.exportChallengeCsv = {
|
||||
.exec(),
|
||||
|
||||
Tasks.Task.find({'challenge.id': challengeId, userId: {$exists: true}})
|
||||
.sort({userId: 1, _id: 1}).select('userId type text value notes').lean().exec(),
|
||||
.sort({userId: 1, text: 1}).select('userId type text value notes').lean().exec(),
|
||||
]);
|
||||
|
||||
let resArray = members.map(member => [member._id, member.profile.name]);
|
||||
|
||||
Reference in New Issue
Block a user