Improve most searched words

This commit is contained in:
Peter Maquiran
2021-03-31 16:55:00 +01:00
parent 6c027b92e8
commit c9c4b11597
2 changed files with 8 additions and 6 deletions
+2 -1
View File
@@ -2,5 +2,6 @@ export class User {
username: string;
password: string;
domainName: string;
BasicAuthKey: string
BasicAuthKey: string;
UserId?: number;
}
+6 -5
View File
@@ -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
};