libs/tasks/application/src/lib/user-tasks.service.ts
Methods |
|
Async createSome | |||||||||
createSome(userId: string, tasks: literal type[])
|
|||||||||
Parameters :
Returns :
Promise<string>
|
Async findMany | ||||||
findMany(userId: string)
|
||||||
Parameters :
Returns :
Promise<UserTask[]>
|
Async updateSome | |||||||||
updateSome(userId: string, userTasks: literal type[])
|
|||||||||
Parameters :
Returns :
Promise<string>
|
import { Injectable } from '@nestjs/common';
import { UserTask } from '@tasks/domain';
@Injectable()
export class UserTasksService {
async findMany(userId: string): Promise<UserTask[]> {
// TODO: Implement this
return [];
}
async createSome(
userId: string,
tasks: { id: string; createdAt: Date }[],
): Promise<string> {
// TODO: Implement this
return 'success';
}
async updateSome(
userId: string,
userTasks: { id: string; updatedAt: Date }[],
): Promise<string> {
// TODO: Implement this
return 'success';
}
}