diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-03-28 16:11:50 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-03-28 16:11:50 +0900 |
| commit | efb7c71d88f177cb245873f3c705c82c4647b1ed (patch) | |
| tree | 74c974eb80964074d78980ba9fac73fbb026edee /src | |
| parent | wip (diff) | |
| download | sharkey-efb7c71d88f177cb245873f3c705c82c4647b1ed.tar.gz sharkey-efb7c71d88f177cb245873f3c705c82c4647b1ed.tar.bz2 sharkey-efb7c71d88f177cb245873f3c705c82c4647b1ed.zip | |
wip
Diffstat (limited to 'src')
| -rw-r--r-- | src/api/models/sw-subscription.ts | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/api/models/sw-subscription.ts b/src/api/models/sw-subscription.ts index ecca04cb91..235c801c7d 100644 --- a/src/api/models/sw-subscription.ts +++ b/src/api/models/sw-subscription.ts @@ -1,3 +1,13 @@ +import * as mongo from 'mongodb'; import db from '../../db/mongodb'; -export default db.get('sw_subscriptions') as any; // fuck type definition +const SwSubscription = db.get<ISwSubscription>('swSubscriptions'); +export default SwSubscription; + +export interface ISwSubscription { + _id: mongo.ObjectID; + userId: mongo.ObjectID; + endpoint: string; + auth: string; + publickey: string; +} |