Skip to content

Commit aadadc0

Browse files
fix(common): add default version to parse uuid pipe
1 parent 1a5bc8f commit aadadc0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/common/pipes/parse-uuid.pipe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export class ParseUUIDPipe implements PipeTransform<string> {
1616
constructor(@Optional() options?: ParseUUIDPipeOptions) {
1717
options = options || {};
1818

19-
this.version = options.version;
19+
this.version = options.version || '4';
2020
this.exceptionFactory =
2121
options.exceptionFactory || (error => new BadRequestException(error));
2222
}

0 commit comments

Comments
 (0)