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:
parent
156c29a81e
commit
1f2bca2261
@ -1,3 +1,5 @@
|
||||
///<reference path="../../../typings/main.d.ts"/>
|
||||
|
||||
import * as mongoose from 'mongoose';
|
||||
import {Schema} from "mongoose";
|
||||
export class DatabaseManager{
|
||||
|
@ -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";
|
||||
|
@ -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()
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue
Block a user