fix: to use correct pattern

This commit is contained in:
Chirag Aggarwal
2025-09-22 19:58:18 +05:30
parent 2043d0e322
commit c52081dbed
4 changed files with 10 additions and 17 deletions
+4 -11
View File
@@ -262,7 +262,6 @@ const METRIC_SITES_ID_INBOUND = 'sites.{siteInternalId}.inbound';
const METRIC_SITES_ID_OUTBOUND = 'sites.{siteInternalId}.outbound';
// Resource types
const RESOURCE_TYPE_PROJECTS = 'projects';
const RESOURCE_TYPE_FUNCTIONS = 'functions';
const RESOURCE_TYPE_SITES = 'sites';
@@ -274,18 +273,12 @@ const RESOURCE_TYPE_SUBSCRIBERS = 'subscribers';
const RESOURCE_TYPE_MESSAGES = 'messages';
// Resource types for Tokens
const TOKENS_RESOURCE_TYPE_FILES = 'files';
const TOKENS_RESOURCE_TYPE_SITES = 'sites';
const TOKENS_RESOURCE_TYPE_FUNCTIONS = 'functions';
const TOKENS_RESOURCE_TYPE_DATABASES = 'databases';
// schedules types
const SCHEDULE_TYPE_EXECUTION = 'execution';
const SCHEDULE_TYPE_FUNCTION = 'function';
const SCHEDULE_TYPE_MESSAGE = 'message';
// collections types
const COLLECTION_TYPE_EXECUTIONS = 'executions';
const COLLECTION_TYPE_FUNCTIONS = 'functions';
const COLLECTION_TYPE_MESSAGES = 'messages';
// Resource types for Schedules
const SCHEDULE_RESOURCE_TYPE_EXECUTION = 'execution';
const SCHEDULE_RESOURCE_TYPE_FUNCTION = 'function';
const SCHEDULE_RESOURCE_TYPE_MESSAGE = 'message';
@@ -24,12 +24,12 @@ class ScheduleExecutions extends ScheduleBase
public static function getSupportedResource(): string
{
return SCHEDULE_TYPE_EXECUTION;
return SCHEDULE_RESOURCE_TYPE_EXECUTION;
}
public static function getCollectionId(): string
{
return COLLECTION_TYPE_EXECUTIONS;
return RESOURCE_TYPE_EXECUTIONS;
}
protected function enqueueResources(Database $dbForPlatform, callable $getProjectDB): void
@@ -28,12 +28,12 @@ class ScheduleFunctions extends ScheduleBase
public static function getSupportedResource(): string
{
return SCHEDULE_TYPE_FUNCTION;
return SCHEDULE_RESOURCE_TYPE_FUNCTION;
}
public static function getCollectionId(): string
{
return COLLECTION_TYPE_FUNCTIONS;
return RESOURCE_TYPE_FUNCTIONS;
}
protected function enqueueResources(Database $dbForPlatform, callable $getProjectDB): void
@@ -17,12 +17,12 @@ class ScheduleMessages extends ScheduleBase
public static function getSupportedResource(): string
{
return SCHEDULE_TYPE_MESSAGE;
return SCHEDULE_RESOURCE_TYPE_MESSAGE;
}
public static function getCollectionId(): string
{
return COLLECTION_TYPE_MESSAGES;
return RESOURCE_TYPE_MESSAGES;
}
protected function enqueueResources(Database $dbForPlatform, callable $getProjectDB): void