mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-15 23:28:07 +09:00
14 lines
304 B
TypeScript
14 lines
304 B
TypeScript
import * as mongo from 'mongodb';
|
|
import db from '../db/mongodb';
|
|
|
|
const SwSubscription = db.get<ISwSubscription>('swSubscriptions');
|
|
export default SwSubscription;
|
|
|
|
export interface ISwSubscription {
|
|
_id: mongo.ObjectID;
|
|
userId: mongo.ObjectID;
|
|
endpoint: string;
|
|
auth: string;
|
|
publickey: string;
|
|
}
|