We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 262fedd commit 8762294Copy full SHA for 8762294
models/tasks.js
@@ -176,8 +176,13 @@ const fetchPaginatedTasks = async ({
176
initialQuery = initialQuery
177
.where("endsOn", "<", currentTime)
178
.where("status", "in", OVERDUE_TASK_STATUSES)
179
- .orderBy("endsOn")
180
- .orderBy("status");
+ .orderBy("endsOn");
+ /**
181
+ * Setting it undefined because when OVERDUE condition is applied, where 2 inEquality checks are being made
182
+ * firestore don't allow more inEquality checks, so for title where 2 more inEquality checks are being added,
183
+ * it will give error
184
+ */
185
+ title = undefined;
186
} else if (status) {
187
initialQuery = initialQuery.where("status", "==", status);
188
}
0 commit comments