1
0
Fork 0
mirror of synced 2024-06-15 17:24:48 +12:00

abuse audit setup for ocnsole db

This commit is contained in:
Damodar Lohani 2021-06-09 15:13:12 +05:45
parent 9a9a309ce2
commit ffa06e7de4

View file

@ -14,6 +14,8 @@ use Utopia\App;
use Utopia\CLI\Console;
use Utopia\Config\Config;
use Utopia\Database\Validator\Authorization as Authorization2;
use Utopia\Audit\Audit;
use Utopia\Abuse\Adapters\TimeLimit;
// xdebug_start_trace('/tmp/trace');
@ -67,6 +69,12 @@ $http->on('start', function (Server $http) use ($payloadSize, $register) {
$register->get('cache')->flushAll();
$dbForConsole->create();
$audit = new Audit($dbForConsole);
$audit->setup();
$adapter = new TimeLimit("", 0, 1, $dbForConsole);
$adapter->setup();
foreach ($collections as $key => $collection) {
$dbForConsole->createCollection($key);