egirlskey/src/models/remote-user-object.ts

16 lines
307 B
TypeScript
Raw Normal View History

2018-03-31 10:55:00 +00:00
import * as mongodb from 'mongodb';
import db from '../db/mongodb';
const RemoteUserObject = db.get<IRemoteUserObject>('remoteUserObjects');
export default RemoteUserObject;
export type IRemoteUserObject = {
_id: mongodb.ObjectID;
uri: string;
object: {
$ref: string;
$id: mongodb.ObjectID;
}
};