Skip to content

Commit

Permalink
Update README.md (#3257)
Browse files Browse the repository at this point in the history
  • Loading branch information
Misha Zamkevich authored Jul 22, 2020
1 parent d7e0113 commit de0c144
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/fields/src/types/CloudinaryImage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const { CloudinaryImage } = require('@keystonejs/fields');

const keystone = new Keystone({...});

const adapter = new CloudinaryAdapter({
const fileAdapter = new CloudinaryAdapter({
cloudName: process.env.CLOUDINARY_CLOUD_NAME,
apiKey: process.env.CLOUDINARY_KEY,
apiSecret: process.env.CLOUDINARY_SECRET,
Expand All @@ -28,7 +28,7 @@ const adapter = new CloudinaryAdapter({

keystone.createList('Image', {
fields: {
image: { type: CloudinaryImage, adapter },
image: { type: CloudinaryImage, adapter: fileAdapter },
},
});
```
Expand Down

0 comments on commit de0c144

Please sign in to comment.