mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
Improve most searched words
This commit is contained in:
@@ -17,8 +17,6 @@ export class SearchService {
|
||||
loggeduser: User;
|
||||
headers: HttpHeaders;
|
||||
|
||||
|
||||
|
||||
categories= Array;
|
||||
|
||||
// setup
|
||||
@@ -55,15 +53,18 @@ export class SearchService {
|
||||
|
||||
mostSeachWord(size:string):Observable<any>{
|
||||
// Endpoint
|
||||
const geturl = environment.apiURL + 'search/top';
|
||||
|
||||
let UserId = (this.loggeduser.UserId).toString();
|
||||
|
||||
const geturl = environment.apiURL + 'Processes/GetHitsByUserId';
|
||||
// store params
|
||||
let params = new HttpParams();
|
||||
// set https params
|
||||
|
||||
params = params.set("userId", UserId);
|
||||
params = params.set("size", size);
|
||||
|
||||
|
||||
const options = {
|
||||
const options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user