Skip to content

Commit

Permalink
fix objectTypes
Browse files Browse the repository at this point in the history
Signed-off-by: shahar-y <[email protected]>
  • Loading branch information
Shahar-Y committed Sep 24, 2020
1 parent a2f49af commit d0346f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/utils/logger.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as winston from 'winston';
import * as os from 'os';
import * as elasticsearch from 'winston-elasticsearch';
import { confLogger, debugMode, useElastic, indexTemplateMapping, serviceName } from './config';
import { confLogger, debugMode, useElastic, indexTemplateMapping, serviceName } from '../config';

export const logger: winston.Logger = winston.createLogger({
defaultMeta: { service: serviceName, hostname: os.hostname() },
Expand Down
4 changes: 2 additions & 2 deletions src/utils/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ enum ObjectType {

function concludeObjectType(type: string) {
switch(type) {
case 'file':
case 'files':
return ObjectType.FILE;
case 'permission':
case 'permissions':
return ObjectType.PERMISSION;
default:
return ObjectType.NONE;
Expand Down

0 comments on commit d0346f5

Please sign in to comment.