mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
feat: add checkForProjectUsage function and integrate it into message handling
This commit is contained in:
1 parent
cf80efbc3c
commit
d18de7d1e8
1 file changed
+10
@@ -326,6 +326,12 @@ if (!function_exists('triggerStats')) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('checkForProjectUsage')) {
|
||||
function checkForProjectUsage(Document $project): void
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
$realtime = getRealtime();
|
||||
$presenceState = new PresenceState();
|
||||
|
||||
@@ -1086,6 +1092,10 @@ $server->onMessage(function (int $connection, string $message) use ($container,
|
||||
$project = null;
|
||||
}
|
||||
|
||||
if ($project !== null) {
|
||||
checkForProjectUsage($project);
|
||||
}
|
||||
|
||||
/*
|
||||
* Abuse Check
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user