Skip to content

Commit

Permalink
Merge pull request #15 from rainshen49/main
Browse files Browse the repository at this point in the history
Fix typescript error in sample app.
HYACCCINT authored Dec 18, 2024
2 parents 564a676 + ae1676e commit 5416b40
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/services/task.service.ts
Original file line number Diff line number Diff line change
@@ -39,6 +39,7 @@ import {
orderBy,
Timestamp,
where,
CollectionReference,
} from '@angular/fire/firestore';
import { GoogleGenerativeAIFetchError } from '@google/generative-ai';
import { v4 as uuidv4 } from 'uuid';
@@ -197,12 +198,12 @@ export class TaskService {
collection(this.firestore, 'todos'),
where('priority', '!=', 'null')
);
return collectionCount(taskQuery, { idField: 'id' });
return collectionCount(taskQuery);
}

loadSubtasks(maintaskId: string): Observable<Task[]> {
const subtaskQuery = query(
collection(this.firestore, 'todos'),
collection(this.firestore, 'todos') as CollectionReference<Task, Task>,
where('parentId', '==', maintaskId),
orderBy('order', 'asc')
);

0 comments on commit 5416b40

Please sign in to comment.