Skip to content

Commit eeb43b3

Browse files
committed
fix: TT-466 fix comments
1 parent 5a1ed1d commit eeb43b3

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/app/modules/time-clock/services/entry.service.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,7 @@ export class EntryService {
4545
}
4646

4747
stopEntryRunning(idEntry: string): Observable<any> {
48-
let path = '';
49-
50-
if (this.urlInProduction){
51-
path = `${this.baseUrl}/${idEntry}/stop`;
52-
return this.http.post(path, null);
53-
}else{
54-
path = `${this.baseUrl}/stop`;
55-
return this.http.put(path, null);
56-
}
48+
return (this.urlInProduction ? this.http.post(`${this.baseUrl}/${idEntry}/stop`, null) : this.http.put(`${this.baseUrl}/stop`, null) );
5749
}
5850

5951
restartEntry(idEntry: string): Observable<Entry> {

0 commit comments

Comments
 (0)