Skip to content

Commit

Permalink
fix: uuid lib import
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Mar 6, 2020
1 parent 4e4f765 commit 507fe0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BaseService.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BaseOptions, Inject, Logger, MissingValueError, LogLevel } from 'noicejs';
import { Registry } from 'prom-client';
import uuid from 'uuid';
import { v4 } from 'uuid';

import { SchemaError } from './error/SchemaError';
import { serviceLogger } from './logger';
Expand Down Expand Up @@ -62,7 +62,7 @@ export abstract class BaseService<TData extends BaseServiceData> implements Serv
throw new MissingValueError('missing service name');
}

this.id = uuid.v4();
this.id = v4();
this.kind = options.metadata.kind;
this.labels = makeMap(options.metadata.labels);
this.name = options.metadata.name;
Expand Down

0 comments on commit 507fe0a

Please sign in to comment.