From 5cf90c1109ee801584096ac3f0963c014c65d767 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 9 May 2019 01:07:16 -0600 Subject: [PATCH] example swap --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 }) ... }); ```