mirror of
https://github.com/bpatrik/pigallery2.git
synced 2024-12-04 10:34:45 +02:00
11 lines
472 B
TypeScript
11 lines
472 B
TypeScript
|
|
import {MongoUserManager} from "../../backend/model/mongoose/MongoUserManager";
|
|
import {User, UserRoles} from "../../common/entities/User";
|
|
import {DatabaseManager} from "../../backend/model/mongoose/DatabaseManager";
|
|
|
|
DatabaseManager.getInstance((err)=>{},()=>{
|
|
let userManager = new MongoUserManager();
|
|
userManager.createUser(new User(0,"demo","demo@demo.hu","demo",UserRoles.Developer),(err)=>{
|
|
DatabaseManager.getInstance().disconnect();
|
|
});
|
|
}); |