Replaced Moment with Carbon #84

Merged
Ghost merged 148 commits from develop into beta 2022-09-22 05:53:36 +02:00
Showing only changes of commit 728a2e5a69 - Show all commits

View file

@ -3,7 +3,7 @@
namespace App\Services\Upkeep;
use ReallySimpleJWT\Token;
use ReallySimpleJWT\Exception\BuildException;
use ReallySimpleJWT\Exception\EncodeException;
use App\Services\Assets\DocService;
use Carbon\Carbon;
@ -34,7 +34,7 @@ class InitService
try {
$secret = Token::create(12, $string, time() + 3600, 'localhost');
return $string;
} catch (BuildException $e) {
} catch (EncodeException $e) {
//bad secret, so try agiain
return self::validSecret(12);
}
@ -103,6 +103,7 @@ class InitService
];
//once all files created, write down
mkdir('../content/config', 0755, true);
$this->docs->writeSettings($newSettings, '../content/config/settings.json');
$this->docs->writeSettings($newFolks, '../content/config/folks.json');
$this->docs->writeSettings([], '../content/config/tags.json');