mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
wip: split shared ops
This commit is contained in:
4
common/script/ops/sleep.js
Normal file
4
common/script/ops/sleep.js
Normal file
@@ -0,0 +1,4 @@
|
||||
module.exports = function (user, req, cb) {
|
||||
user.preferences.sleep = !user.preferences.sleep;
|
||||
return typeof cb === 'function' ? cb(null, {}) : void 0;
|
||||
};
|
||||
Reference in New Issue
Block a user