1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

adding missing reference

This commit is contained in:
Braun Patrik 2016-04-24 23:20:55 +02:00
parent 156c29a81e
commit 1f2bca2261
3 changed files with 7 additions and 5 deletions

View File

@ -1,3 +1,5 @@
///<reference path="../../../typings/main.d.ts"/>
import * as mongoose from 'mongoose';
import {Schema} from "mongoose";
export class DatabaseManager{

View File

@ -1,11 +1,7 @@
import * as fs from 'fs';
import * as path from 'path';
import * as mime from 'mime';
import * as sizeOf from 'image-size';
import {Schema} from "mongoose";
import {Directory} from "../../../common/entities/Directory";
import {Photo} from "../../../common/entities/Photo";
import {IGalleryManager} from "../IGalleryManager";
import {DatabaseManager} from "./DatabaseManager";
import {DiskManager} from "../DiskManger";

View File

@ -3,9 +3,13 @@ import {MongoUserManager} from "../../backend/model/mongoose/MongoUserManager";
import {User, UserRoles} from "../../common/entities/User";
import {DatabaseManager} from "../../backend/model/mongoose/DatabaseManager";
DatabaseManager.getInstance((err)=>{},()=>{
DatabaseManager.getInstance((err)=>{
DatabaseManager.getInstance().disconnect();
process.exit()
},()=>{
let userManager = new MongoUserManager();
userManager.createUser(new User(0,"demo","demo@demo.hu","demo",UserRoles.Developer),(err)=>{
DatabaseManager.getInstance().disconnect();
process.exit()
});
});