Skip to content

Commit

Permalink
fix(readme): fix typo and missing import in readme example
Browse files Browse the repository at this point in the history
add StorageService to imports
fix typo in AppModule constructor
  • Loading branch information
Flusinerd authored Apr 19, 2021
1 parent 8d70380 commit 0efac09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ $ npm i --save @slynova/flydrive-gcs
```typescript
// app.module.ts
import { Module } from '@nestjs/common'
import { StorageModule, DriverType } from '@codebrew/nestjs-storage';
import { StorageModule, DriverType, StorageService } from '@codebrew/nestjs-storage';

@Module({
imports: [
Expand All @@ -46,7 +46,7 @@ import { StorageModule, DriverType } from '@codebrew/nestjs-storage';
],
})
export class AppModule {
constructor(private storage: StorageServic) {
constructor(private storage: StorageService) {
this.storage.getDisk().put('test.txt', 'text content');
}
}
Expand Down

0 comments on commit 0efac09

Please sign in to comment.