From 75100d54e0554fe35c469a520080628b3bd515c0 Mon Sep 17 00:00:00 2001 From: Iddan Aaronsohn Date: Tue, 11 Aug 2020 17:54:09 +0300 Subject: [PATCH] Fix example in readme --- README.md | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index bac1591..7047fa2 100644 --- a/README.md +++ b/README.md @@ -31,22 +31,19 @@ import { Module } from '@nestjs/common' import { StorageModule, DriverType } from '@codebrew/nestjs-storage'; @Module({ - imports: [StorageModule.forRoot({ - module: AppModule, - imports: [ - StorageModule.forRoot({ - default: 'local', - disks: { - local: { - driver: DriverType.LOCAL, - config: { - root: process.cwd(), - }, + imports: [ + StorageModule.forRoot({ + default: 'local', + disks: { + local: { + driver: DriverType.LOCAL, + config: { + root: process.cwd(), }, }, - }), - ], - })] + }, + }), + ], }) export class AppModule { constructor(private storage: StorageServic) {