Skip to content

Commit 86032d5

Browse files
refactor: TT-217 Remove getOwnerId method
1 parent d1beacb commit 86032d5

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/app/modules/time-clock/components/entry-fields/entry-fields.component.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ import { getTimeEntriesDataSource } from '../../store/entry.selectors';
1717
import { DATE_FORMAT } from 'src/environments/environment';
1818
import { Subscription, Observable } from 'rxjs';
1919
import { FeatureManagerService } from './../../../shared/feature-toggles/feature-toggle-manager.service';
20-
import { AzureAdB2CService } from 'src/app/modules/login/services/azure.ad.b2c.service';
21-
2220

2321
type Merged = TechnologyState & ProjectState & ActivityState;
2422

@@ -46,7 +44,6 @@ export class EntryFieldsComponent implements OnInit, OnDestroy {
4644
private store: Store<Merged>,
4745
private actionsSubject$: ActionsSubject,
4846
private toastrService: ToastrService,
49-
private azureService: AzureAdB2CService,
5047
private featureManagerService: FeatureManagerService
5148
) {
5249
this.entryForm = this.formBuilder.group({
@@ -158,7 +155,6 @@ export class EntryFieldsComponent implements OnInit, OnDestroy {
158155
}
159156
this.entryForm.patchValue({ start_date: newHourEntered });
160157
if (this.isFeatureToggleActive) {
161-
this.newData.owner_id = this.getOwnerId();
162158
this.newData.update_last_entry_if_overlap = true;
163159
this.store.dispatch(new entryActions.UpdateEntryRunning({ ...this.newData, ...this.entryForm.value }));
164160
} else {
@@ -167,10 +163,6 @@ export class EntryFieldsComponent implements OnInit, OnDestroy {
167163
this.showTimeInbuttons = false;
168164
}
169165

170-
getOwnerId(){
171-
return this.azureService.getUserId();
172-
}
173-
174166
private getLastEntry() {
175167
const lastEntry$ = this.store.pipe(select(getTimeEntriesDataSource));
176168
lastEntry$.subscribe((entry) => {

0 commit comments

Comments
 (0)