diff options
| author | Adam Soltys <[email protected]> | 2018-03-02 16:46:49 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2018-03-02 16:46:49 -0800 |
| commit | da49c83d765e88fb505bcfc76e6f41763f5ceedd (patch) | |
| tree | 49898b3bf5f5cef11ab82a32b9a260b75448e95a /db.js | |
| parent | 9e69c2f3f6ca8c65d9ad1146121b56f5e6194e6e (diff) | |
| download | coinos-server-da49c83d765e88fb505bcfc76e6f41763f5ceedd.tar.gz coinos-server-da49c83d765e88fb505bcfc76e6f41763f5ceedd.zip | |
authenticate sockets and only emit to specific subscribers
Diffstat (limited to 'db.js')
| -rw-r--r-- | db.js | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -70,6 +70,13 @@ const p = (lnrpc) => { db[k] = db.define(k, fields, { tableName: t }) + if (t === 'invoices') { + db['Invoice'].belongsTo(db['User'], { + as: 'user', + foreignKey: 'user_id' + }) + } + let typefields = {} let options = {} |
