1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-04 10:34:45 +02:00
pigallery2/test/backend/initMongo.ts

11 lines
472 B
TypeScript
Raw Normal View History

2016-04-22 13:23:44 +02:00
import {MongoUserManager} from "../../backend/model/mongoose/MongoUserManager";
import {User, UserRoles} from "../../common/entities/User";
import {DatabaseManager} from "../../backend/model/mongoose/DatabaseManager";
2016-04-24 20:56:54 +02:00
DatabaseManager.getInstance((err)=>{},()=>{
let userManager = new MongoUserManager();
userManager.createUser(new User(0,"demo","demo@demo.hu","demo",UserRoles.Developer),(err)=>{
DatabaseManager.getInstance().disconnect();
});
2016-04-22 13:23:44 +02:00
});