From e0f63e787136c8686c5654c4d8ce275575f25636 Mon Sep 17 00:00:00 2001 From: nima soufiloo Date: Fri, 12 Mar 2021 15:24:58 +0330 Subject: [PATCH] made MinioOptions optional --- package.json | 2 +- src/minio.module.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c74484e..0862c88 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nimasfl/nest-minio", - "version": "1.4.1", + "version": "1.4.2", "description": "nest minio module", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/minio.module.ts b/src/minio.module.ts index 8297924..0123021 100644 --- a/src/minio.module.ts +++ b/src/minio.module.ts @@ -9,7 +9,7 @@ import {MINIO_CONFIG, MINIO_OPTIONS} from "./types/constants"; export class MinioModule { static register( minioConfig: ClientOptions, - minioOptions: MinioOptions, + minioOptions: MinioOptions = null, ): DynamicModule { return { global: true,