diff --git a/README.md b/README.md index 64a1d18..f49ca22 100644 --- a/README.md +++ b/README.md @@ -67,11 +67,10 @@ Greenlock.create({ You may use database URLs (also known as 'connection strings') to initialize sequelize: ```js -var Sequelize = require('sequelize'); -var db = new Sequelize('postgres://user:pass@hostname:port/database'); +var dbUrl = 'postgres://user:pass@hostname:port/database'; Greenlock.create({ - store: require('greenlock-store-sequelize').create({ db: db }) + store: require('greenlock-store-sequelize').create({ storeDatabaseUrl: dbUrl }) ... }); ``` @@ -79,10 +78,11 @@ Greenlock.create({ If you need to use **custom options**, just instantiate sequelize directly: ```js -var dbUrl = 'postgres://user:pass@hostname:port/database'; +var Sequelize = require('sequelize'); +var db = new Sequelize('postgres://user:pass@hostname:port/database'); Greenlock.create({ - store: require('greenlock-store-sequelize').create({ storeDatabaseUrl: dbUrl }) + store: require('greenlock-store-sequelize').create({ db: db }) ... }); ```