Skip to content

Commit

Permalink
PUSH
Browse files Browse the repository at this point in the history
-> Comit
  • Loading branch information
NaysKutzu committed Sep 19, 2024
1 parent 6c523d0 commit e6e9f25
Show file tree
Hide file tree
Showing 13 changed files with 606 additions and 106 deletions.
5 changes: 5 additions & 0 deletions app/Database/MySQL.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@

class MySQL
{
public const TABLES_PREFIX = 'framework_';
public const TABLES_REQUIRED_COLUMNS = [
'locked',
'deleted',
];
public static int $migrated_files_count;
private static $connection;

Expand Down
1 change: 1 addition & 0 deletions app/User/Activity/UserActivity.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public static function getActivities(string $userId): array
return $activities;
} catch (\Exception $e) {
Logger::log(LoggerLevels::CRITICAL, LoggerTypes::CORE, 'An error occurred while getting user activities: ' . $e->getMessage());

return [];
}
}
Expand Down
21 changes: 21 additions & 0 deletions app/User/Api/ApiTypes.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

/*
* This file is part of MythicalSystemsFramework.
* Please view the LICENSE file that was distributed with this source code.
*
* (c) MythicalSystems <mythicalsystems.xyz> - All rights reserved
* (c) NaysKutzu <nayskutzu.xyz> - All rights reserved
* (c) Cassian Gherman <nayskutzu.xyz> - All rights reserved
*
* You should have received a copy of the MIT License
* along with this program. If not, see <https://opensource.org/licenses/MIT>.
*/

namespace MythicalSystemsFramework\User\Api;

interface ApiTypes
{
public const READ = 'r';
public const READ_WRITE = 'rw';
}
Loading

0 comments on commit e6e9f25

Please sign in to comment.