Skip to content

Commit

Permalink
fix: πŸ› fix TaskRepository definition
Browse files Browse the repository at this point in the history
  • Loading branch information
zhumeisongsong committed Dec 7, 2024
1 parent d58a708 commit 48646b7
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions libs/tasks/domain/src/lib/task.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,16 @@ import { UserTask } from './entities/user-task.entity';

export interface TaskRepository {
findAllTasks(): Promise<Task[]>;
findUserTasks(userId: string): Promise<Task[]>;
createUserTasks(userId: string, tasks: Task[]): Promise<void>;
updateUserTasks(userId: string, userTasks: UserTask[]): Promise<void>;
findUserTasks(
userId: string,
range?: { from: Date; to: Date },
): Promise<Task[]>;
createUserTasks(
userId: string,
tasks: { id: string; createdAt: Date }[],
): Promise<void>;
updateUserTasks(
userId: string,
userTasks: { id: string; updatedAt: Date }[],
): Promise<void>;
}

0 comments on commit 48646b7

Please sign in to comment.