Skip to content

Commit

Permalink
fix: deepscan
Browse files Browse the repository at this point in the history
  • Loading branch information
adkif committed Feb 3, 2024
1 parent cdbe39d commit d1c8b77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class TimerService implements ITimerService<TimerTO> {

public async update(timer: Partial<Timer>): Promise<void> {
try {
if (!timer && !timer.id) {
if (!timer.id) {
return console.error('WARN[TIMER_SERVICE]: No timer data, cannot update');
}
await this._timerDAO.update(timer.id, timer.toObject());
Expand All @@ -54,7 +54,7 @@ export class TimerService implements ITimerService<TimerTO> {

public async findById(timer: Partial<Timer>): Promise<TimerTO> {
try {
if (!timer && !timer.id) {
if (!timer.id) {
console.error('WARN[TIMER_SERVICE]: No timer data, cannot find');
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class UserService implements IUserService<UserTO> {

public async update(user: Partial<UserTO>): Promise<void> {
try {
if (!user && !user.id) {
if (!user.id) {
return console.error('WARN[USER_SERVICE]: No user data, cannot update');
}
await this._userDAO.update(user.id, user);
Expand Down

0 comments on commit d1c8b77

Please sign in to comment.