Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: TT-466 fix comments
  • Loading branch information
gcobena-dev committed Dec 27, 2021
commit eeb43b3f39290bd95eaef146798a917ae5037827
10 changes: 1 addition & 9 deletions src/app/modules/time-clock/services/entry.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,7 @@ export class EntryService {
}

stopEntryRunning(idEntry: string): Observable<any> {
let path = '';

if (this.urlInProduction){
path = `${this.baseUrl}/${idEntry}/stop`;
return this.http.post(path, null);
}else{
path = `${this.baseUrl}/stop`;
return this.http.put(path, null);
}
return (this.urlInProduction ? this.http.post(`${this.baseUrl}/${idEntry}/stop`, null) : this.http.put(`${this.baseUrl}/stop`, null) );
}

restartEntry(idEntry: string): Observable<Entry> {
Expand Down