mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
change response for shared.ops.sleep, save user in POST /user/sleep and add integration tests for it
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
module.exports = function sleep (user) {
|
||||
user.preferences.sleep = !user.preferences.sleep;
|
||||
return user.preferences.sleep;
|
||||
return {
|
||||
preferences: {
|
||||
sleep: user.preferences.sleep,
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user