mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
use clone
This commit is contained in:
@@ -413,7 +413,7 @@ class StatsUsage extends Action
|
||||
return;
|
||||
}
|
||||
}
|
||||
$documentClone = new Document($stat->getArrayCopy());
|
||||
$documentClone = clone $stat;
|
||||
$documentClone->setAttribute('$tenant', (int) $project->getInternalId());
|
||||
$this->statDocuments[] = $documentClone;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user