mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
improve spacing
This commit is contained in:
@@ -42,7 +42,9 @@
|
|||||||
var uuid='30fb2640-7121-4968-ace5-f385e60ea6c5';
|
var uuid='30fb2640-7121-4968-ace5-f385e60ea6c5';
|
||||||
|
|
||||||
db.users.aggregate([
|
db.users.aggregate([
|
||||||
{$match: {'_id': uuid} },
|
{$match: {
|
||||||
|
'_id': uuid
|
||||||
|
}},
|
||||||
{$project: {
|
{$project: {
|
||||||
'_id':0, 'todos':1
|
'_id':0, 'todos':1
|
||||||
}},
|
}},
|
||||||
@@ -73,8 +75,8 @@ db.users.aggregate([
|
|||||||
db.users.update({
|
db.users.update({
|
||||||
'_id': uuid,
|
'_id': uuid,
|
||||||
'todos': { $elemMatch: { id: taskid } }
|
'todos': { $elemMatch: { id: taskid } }
|
||||||
},
|
},{
|
||||||
{ $set: { "todos.$.id" : 'de666' }
|
$set: { "todos.$.id" : 'de666' }
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -86,4 +88,3 @@ db.users.update(
|
|||||||
{multi: false }
|
{multi: false }
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user