mirror of
https://github.com/wekan/wekan.git
synced 2025-12-24 03:10:12 +01:00
Fix problem with dates in selector being unpickled as a String
This commit is contained in:
parent
223cc07139
commit
a63a61e7fc
3 changed files with 61 additions and 24 deletions
|
|
@ -751,19 +751,19 @@ Meteor.publish('previousPage', function(sessionId) {
|
|||
});
|
||||
|
||||
function findCards(sessionId, selector, projection, errors = null) {
|
||||
// check(selector, Object);
|
||||
// check(projection, Object);
|
||||
const userId = Meteor.userId();
|
||||
|
||||
console.log('selector:', selector);
|
||||
console.log('projection:', projection);
|
||||
|
||||
// if (selector.dueAt) {
|
||||
// console.log('dueAt:', typeof selector.dueAt.$lt, selector.dueAt.$lt.constructor.name, selector.dueAt.$lt);
|
||||
// }
|
||||
let cards;
|
||||
if (!errors || !errors.hasErrors()) {
|
||||
cards = Cards.find(selector, projection);
|
||||
}
|
||||
|
||||
console.log('count:', cards.count());
|
||||
|
||||
const update = {
|
||||
$set: {
|
||||
totalHits: 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue