1
0
Fork 0
mirror of synced 2024-07-03 05:31:38 +12:00

Merge branch 'refactor-usage-sn' of https://github.com/appwrite/appwrite into refactor-usage-sn

This commit is contained in:
Matej Bačo 2023-12-20 12:31:56 +01:00
commit ccfd856e8e

View file

@ -545,10 +545,9 @@ class Deletes extends Action
* @return void
* @throws Exception
*/
private function deleteExecutionLogs(Document $project, callable $getProjectDB, callable $getProjectExecutionRetention): void
private function deleteExecutionLogs(Document $project, callable $getProjectDB, string $datetime): void
{
$dbForProject = $getProjectDB($project);
$datetime = $getProjectExecutionRetention($project);
// Delete Executions
$this->deleteByGroup('executions', [
Query::lessThan('$createdAt', $datetime)