We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a5bc8f commit aadadc0Copy full SHA for aadadc0
1 file changed
packages/common/pipes/parse-uuid.pipe.ts
@@ -16,7 +16,7 @@ export class ParseUUIDPipe implements PipeTransform<string> {
16
constructor(@Optional() options?: ParseUUIDPipeOptions) {
17
options = options || {};
18
19
- this.version = options.version;
+ this.version = options.version || '4';
20
this.exceptionFactory =
21
options.exceptionFactory || (error => new BadRequestException(error));
22
}
0 commit comments