Filled out DB fixed.
This commit is contained in:
@@ -28,8 +28,6 @@ async function remove() {
|
||||
console.log(logSymbols.success, "impresoras");
|
||||
await inventario.drop();
|
||||
console.log(logSymbols.success, "inventario");
|
||||
await admin.drop();
|
||||
console.log(logSymbols.success, "admin");
|
||||
await os.drop();
|
||||
console.log(logSymbols.success, "os");
|
||||
await activofijo.drop();
|
||||
@@ -101,6 +99,12 @@ async function createFirstUsers() {
|
||||
isAdmin: true
|
||||
});
|
||||
|
||||
await admin.create({
|
||||
name: 'billie',
|
||||
userName: 'Billie',
|
||||
password: bcrypt.hashSync('contraseña', 10)
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
async function exec() {
|
||||
|
||||
Reference in New Issue
Block a user