mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
fix(usage): route document delete op metric per database type
Single-document delete hardcoded the base billable metric databases.operations.writes, diverging from every other document write action, which uses getDatabasesOperationWriteMetric() to route documentsdb/vectorsdb operations to their own per-type metric key. This leaked deletes on documentsdb/vectorsdb databases into the shared, billed databasesWrites meter.
This commit is contained in:
1 parent
bcd1ad830e
commit
171633c382
1 file changed
+1
-1
+1
-1
@@ -219,7 +219,7 @@ class Delete extends Action
|
||||
$usage
|
||||
->setResource('database')
|
||||
->setResourceInternalId((string) $database->getSequence())
|
||||
->addMetric(METRIC_DATABASES_OPERATIONS_WRITES, 1);
|
||||
->addMetric($this->getDatabasesOperationWriteMetric(), 1);
|
||||
|
||||
$response->addHeader('X-Debug-Operations', 1);
|
||||
|
||||
|
||||
Reference in new issue
Block a user