Ver código fonte

Rename as SearchService.

FAMBL 1 ano atrás
pai
commit
84b483840f
5 arquivos alterados com 8 adições e 8 exclusões
  1. 1 1
      index.ts
  2. 1 1
      services/query.service.ts
  3. 2 2
      test/test1.ts
  4. 2 2
      test/test2.ts
  5. 2 2
      test/test3.ts

+ 1 - 1
index.ts

@@ -1,4 +1,4 @@
-import { queryService } from "./services/query.service";
+import { SearchService } from "./services/query.service";
 
 const express = require('express');
 const bodyParser = require('body-parser');

+ 1 - 1
services/query.service.ts

@@ -3,7 +3,7 @@ import {  isObject, get } from 'lodash'
 import { Observable, Subject, interval, map, of } from 'rxjs'
 import { DataPrepService } from './dataprep.service'
 import _ = require("lodash")
-export class queryService {
+export class SearchService {
 
     private dataPrepService : DataPrepService
     constructor(){

+ 2 - 2
test/test1.ts

@@ -3,12 +3,12 @@ pass in the conditions of their search enquiries. We will aslo have to cater to
 data to be filtered
  */
 import { Observable } from "rxjs"
-import { queryService } from "../services/query.service"
+import { SearchService } from "../services/query.service"
 import { Conditions, Storage } from "../services/query.service"
 import {  isObject } from 'lodash'
 import _ = require("lodash")
 
-let query = new queryService()
+let query = new SearchService()
 
 //For now just local file storage. More will be preapred in the design phase later.
 let storageAddress: Storage = {

+ 2 - 2
test/test2.ts

@@ -3,12 +3,12 @@ pass in the conditions of their search enquiries. We will aslo have to cater to
 data to be filtered
  */
 import { Observable } from "rxjs"
-import { queryService } from "../services/query.service"
+import { SearchService } from "../services/query.service"
 import { Conditions, Storage } from "../services/query.service"
 import { isObject } from 'lodash'
 import _ = require("lodash")
 
-let query = new queryService()
+let query = new SearchService()
 
 let mongoStorage : any = {
     type: `MongoDB`,

+ 2 - 2
test/test3.ts

@@ -2,7 +2,7 @@
 
 import mongoose, { Model } from "mongoose";
 import { Subject, from, map, of, interval, buffer, asyncScheduler, observeOn, takeUntil, delay, queueScheduler, bufferWhen } from "rxjs";
-import { queryService } from "../services/query.service";
+import { SearchService } from "../services/query.service";
 const used = process.memoryUsage();
 
 let MongooseConnection: mongoose.Connection
@@ -89,7 +89,7 @@ function handlers(element: any) {
     }, randomInt * 1000)
 }
 function printLog() {
-    let service = new queryService()
+    let service = new SearchService()
     service.callFromOtherClass()
 }