From 69aea866dc720772446d13d3836561b30309c7f7 Mon Sep 17 00:00:00 2001 From: lexx Date: Thu, 19 Oct 2023 19:55:32 +0300 Subject: [PATCH] fixes --- composer.json | 3 --- src/Account/UserRepo.php | 2 +- src/Commands/CompileSchemas.php | 4 ++-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index c256fce..afc045a 100644 --- a/composer.json +++ b/composer.json @@ -2,9 +2,6 @@ "name": "lexx27/lucent", "type": "library", "description": "Lucent cms", - "bin": [ - "bin/lucent-serve" - ], "license": "MIT", "require": { "php": "^8.2", diff --git a/src/Account/UserRepo.php b/src/Account/UserRepo.php index 3fb4aad..7231ca6 100644 --- a/src/Account/UserRepo.php +++ b/src/Account/UserRepo.php @@ -102,7 +102,7 @@ class UserRepo id: $data["id"], name: new Name($data["name"] ?? ""), email: new Email($data["email"]), - roles: json_decode($data["roles"] ?? [],true), + roles: json_decode($data["roles"] ?? "[]",true), createdAt: $data["createdAt"], updatedAt: $data["updatedAt"], loggedInAt: $data["loggedInAt"] ?? null, diff --git a/src/Commands/CompileSchemas.php b/src/Commands/CompileSchemas.php index 0d47c20..ceece05 100644 --- a/src/Commands/CompileSchemas.php +++ b/src/Commands/CompileSchemas.php @@ -52,8 +52,8 @@ class CompileSchemas extends Command $carry, $schema->read, $schema->write, - config("lucent.canInvite"), - config("lucent.canBuild"), + config("lucent.canInvite") ?? [], + config("lucent.canBuild") ?? [], ), []); $json = [