Skip to content

Commit e49850f

Browse files
authored
Fix example in readme (#2)
1 parent ce502fe commit e49850f

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

README.md

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,19 @@ import { Module } from '@nestjs/common'
3131
import { StorageModule, DriverType } from '@codebrew/nestjs-storage';
3232

3333
@Module({
34-
imports: [StorageModule.forRoot({
35-
module: AppModule,
36-
imports: [
37-
StorageModule.forRoot({
38-
default: 'local',
39-
disks: {
40-
local: {
41-
driver: DriverType.LOCAL,
42-
config: {
43-
root: process.cwd(),
44-
},
34+
imports: [
35+
StorageModule.forRoot({
36+
default: 'local',
37+
disks: {
38+
local: {
39+
driver: DriverType.LOCAL,
40+
config: {
41+
root: process.cwd(),
4542
},
4643
},
47-
}),
48-
],
49-
})]
44+
},
45+
}),
46+
],
5047
})
5148
export class AppModule {
5249
constructor(private storage: StorageServic) {

0 commit comments

Comments
 (0)