File

libs/tasks/application/src/lib/user-tasks.service.ts

Index

Methods

Methods

Async createSome
createSome(userId: string, tasks: literal type[])
Parameters :
Name Type Optional
userId string No
tasks literal type[] No
Returns : Promise<string>
Async findMany
findMany(userId: string)
Parameters :
Name Type Optional
userId string No
Returns : Promise<UserTask[]>
Async updateSome
updateSome(userId: string, userTasks: literal type[])
Parameters :
Name Type Optional
userId string No
userTasks literal type[] No
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';
  }
}

results matching ""

    No results matching ""