Remove blocks

This commit is contained in:
Jake Barnby
2025-02-25 18:18:25 +13:00
parent 1f560d896f
commit 6f854b5eb6
5 changed files with 20 additions and 40 deletions
+2 -4
View File
@@ -2750,10 +2750,8 @@ App::get('/v1/account/logs')
}
$response->dynamic(new Document([
//'total' => $audit->countLogsByUser($user->getInternalId()),
//'logs' => $output,
'total' => 0,
'logs' => [],
'total' => $audit->countLogsByUser($user->getInternalId()),
'logs' => $output,
]), Response::MODEL_LOG_LIST);
});
+6 -12
View File
@@ -723,10 +723,8 @@ App::get('/v1/databases/:databaseId/logs')
}
$response->dynamic(new Document([
//'total' => $audit->countLogsByResource($resource),
//'logs' => $output,
'total' => 0,
'logs' => [],
'total' => $audit->countLogsByResource($resource),
'logs' => $output,
]), Response::MODEL_LOG_LIST);
});
@@ -1114,10 +1112,8 @@ App::get('/v1/databases/:databaseId/collections/:collectionId/logs')
}
$response->dynamic(new Document([
//'total' => $audit->countLogsByResource($resource),
//'logs' => $output,
'total' => 0,
'logs' => [],
'total' => $audit->countLogsByResource($resource),
'logs' => $output,
]), Response::MODEL_LOG_LIST);
});
@@ -3767,10 +3763,8 @@ App::get('/v1/databases/:databaseId/collections/:collectionId/documents/:documen
}
$response->dynamic(new Document([
//'total' => $audit->countLogsByResource($resource),
//'logs' => $output,
'total' => 0,
'logs' => [],
'total' => $audit->countLogsByResource($resource),
'logs' => $output,
]), Response::MODEL_LOG_LIST);
});
+8 -16
View File
@@ -1047,10 +1047,8 @@ App::get('/v1/messaging/providers/:providerId/logs')
}
$response->dynamic(new Document([
//'total' => $audit->countLogsByResource($resource),
//'logs' => $output,
'total' => 0,
'logs' => [],
'total' => $audit->countLogsByResource($resource),
'logs' => $output,
]), Response::MODEL_LOG_LIST);
});
@@ -2278,10 +2276,8 @@ App::get('/v1/messaging/topics/:topicId/logs')
}
$response->dynamic(new Document([
//'total' => $audit->countLogsByResource($resource),
//'logs' => $output,
'total' => 0,
'logs' => [],
'total' => $audit->countLogsByResource($resource),
'logs' => $output,
]), Response::MODEL_LOG_LIST);
});
@@ -2690,10 +2686,8 @@ App::get('/v1/messaging/subscribers/:subscriberId/logs')
}
$response->dynamic(new Document([
//'total' => $audit->countLogsByResource($resource),
//'logs' => $output,
'total' => 0,
'logs' => [],
'total' => $audit->countLogsByResource($resource),
'logs' => $output,
]), Response::MODEL_LOG_LIST);
});
@@ -3457,10 +3451,8 @@ App::get('/v1/messaging/messages/:messageId/logs')
}
$response->dynamic(new Document([
//'total' => $audit->countLogsByResource($resource),
//'logs' => $output,
'total' => 0,
'logs' => [],
'total' => $audit->countLogsByResource($resource),
'logs' => $output,
]), Response::MODEL_LOG_LIST);
});
+2 -4
View File
@@ -1415,9 +1415,7 @@ App::get('/v1/teams/:teamId/logs')
}
}
$response->dynamic(new Document([
//'total' => $audit->countLogsByResource($resource),
//'logs' => $output,
'total' => 0,
'logs' => [],
'total' => $audit->countLogsByResource($resource),
'logs' => $output,
]), Response::MODEL_LOG_LIST);
});
+2 -4
View File
@@ -915,10 +915,8 @@ App::get('/v1/users/:userId/logs')
}
$response->dynamic(new Document([
//'total' => $audit->countLogsByUser($user->getInternalId()),
//'logs' => $output,
'total' => 0,
'logs' => [],
'total' => $audit->countLogsByUser($user->getInternalId()),
'logs' => $output,
]), Response::MODEL_LOG_LIST);
});