We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a1ed1d commit eeb43b3Copy full SHA for eeb43b3
src/app/modules/time-clock/services/entry.service.ts
@@ -45,15 +45,7 @@ export class EntryService {
45
}
46
47
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
- }
+ return (this.urlInProduction ? this.http.post(`${this.baseUrl}/${idEntry}/stop`, null) : this.http.put(`${this.baseUrl}/stop`, null) );
57
58
59
restartEntry(idEntry: string): Observable<Entry> {
0 commit comments