mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
res.respond: allow for thrid parameter (message), refactor shared ops responses and adapt tests
This commit is contained in:
@@ -94,9 +94,9 @@ module.exports = function feed (user, req = {}) {
|
||||
value: userPets[pet],
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
data: userPets[pet],
|
||||
return [
|
||||
userPets[pet],
|
||||
message,
|
||||
};
|
||||
];
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user