Add persistent user

This commit is contained in:
2021-06-18 17:49:35 +02:00
parent 76857bb630
commit b6459af124
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@linkyjs/core",
"version": "1.0.4",
"version": "1.0.6",
"description": "URL Shortener for Developers 💻",
"main": "start/kernel.ts",
"repository": {

View File

@@ -13,7 +13,7 @@ export default class AppProvider {
}
public async boot () {
await User.firstOrNew({
await User.firstOrCreate({
email: Env.get('ADMIN_USER', 'admin@linkyjs.dev')
}, {
email: Env.get('ADMIN_USER', 'admin@linkyjs.dev'),