Skip to content

Commit b5ceecc

Browse files
committed
Use publications option - fixes #295
1 parent 54204f6 commit b5ceecc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,8 @@ function parseOptions(a, b) {
399399
debug : o.debug,
400400
fetch_types : 'fetch_types' in o ? o.fetch_types : true,
401401
parameters : {},
402-
shared : { retries: 0, typeArrayMap: {} }
402+
shared : { retries: 0, typeArrayMap: {} },
403+
publications : o.publications || query.get('publications') || 'alltables'
403404
},
404405
mergeUserTypes(o.types)
405406
)

src/subscribe.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default function Subscribe(postgres, options) {
4646
}
4747
}
4848

49-
async function init(sql, slot, publications = 'alltables') {
49+
async function init(sql, slot, publications) {
5050
if (!publications)
5151
throw new Error('Missing publication names')
5252

0 commit comments

Comments
 (0)