Skip to content

Commit

Permalink
Refactor SearchAiEffects
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikiwanekhyland committed Sep 24, 2024
1 parent fdce61f commit 99617a9
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
*/

import { Injectable } from '@angular/core';
import { inject, Injectable } from '@angular/core';
import { Actions, createEffect, ofType } from '@ngrx/effects';
import { SearchAiActionTypes, SearchByTermAiAction, ToggleAISearchInput } from '@alfresco/aca-shared/store';
import { map } from 'rxjs/operators';
Expand All @@ -32,8 +32,9 @@ import { Params } from '@angular/router';

@Injectable()
export class SearchAiEffects {
constructor(private actions$: Actions, private searchNavigationService: SearchAiNavigationService, private searchAiService: SearchAiService) {}

private actions$ = inject(Actions);
private searchNavigationService = inject(SearchAiNavigationService);
private searchAiService = inject(SearchAiService);
searchByTerm$ = createEffect(
() =>
this.actions$.pipe(
Expand Down

0 comments on commit 99617a9

Please sign in to comment.