Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swagger and Translations to pt-PT and pt-BR #453

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
lint
  • Loading branch information
avmesquita committed Dec 7, 2024
commit 5e45ecf3c344c87d733c8973964df3a52a5f125c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class IsMaximumTimeSpentReached {

public async isSatisfiedBy(
event: Event,
newTime: number = 0
newTime = 0
): Promise<boolean> {
const user = event.getUser();
const date = event.getDate();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class UserRepository implements IUserRepository {

public findUsers(
withAccountant: boolean,
noLeavingDate: boolean = false
noLeavingDate = false
): Promise<User[]> {
const query = this.repository
.createQueryBuilder('user')
Expand Down
2 changes: 1 addition & 1 deletion src/Infrastructure/Task/Repository/TaskRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class TaskRepository implements ITaskRepository {
.getOne();
}

public findTasks(page: number = 1): Promise<[Task[], number]> {
public findTasks(page = 1): Promise<[Task[], number]> {
return this.repository
.createQueryBuilder('task')
.select(['task.id', 'task.name'])
Expand Down