mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
Merge branch 'develop' into hairlessbear-quest_invite_modal_on_user_sync
This commit is contained in:
@@ -540,6 +540,9 @@ UserSchema.pre('save', function(next) {
|
||||
|
||||
UserSchema.methods.unlink = function(options, cb) {
|
||||
var cid = options.cid, keep = options.keep, tid = options.tid;
|
||||
if (!cid) {
|
||||
return cb("Could not remove challenge tasks. Please delete them manually.");
|
||||
}
|
||||
var self = this;
|
||||
switch (keep) {
|
||||
case 'keep':
|
||||
|
||||
Reference in New Issue
Block a user