wip
This commit is contained in:
parent
ef56dc33df
commit
a3fb635168
|
@ -86,6 +86,7 @@ const DELETE_TYPE_EXECUTIONS = 'executions';
|
||||||
const DELETE_TYPE_AUDIT = 'audit';
|
const DELETE_TYPE_AUDIT = 'audit';
|
||||||
const DELETE_TYPE_ABUSE = 'abuse';
|
const DELETE_TYPE_ABUSE = 'abuse';
|
||||||
const DELETE_TYPE_CERTIFICATES = 'certificates';
|
const DELETE_TYPE_CERTIFICATES = 'certificates';
|
||||||
|
const DELETE_TYPE_BUCKETS = 'buckets';
|
||||||
// Auth Types
|
// Auth Types
|
||||||
const APP_AUTH_TYPE_SESSION = 'Session';
|
const APP_AUTH_TYPE_SESSION = 'Session';
|
||||||
const APP_AUTH_TYPE_JWT = 'JWT';
|
const APP_AUTH_TYPE_JWT = 'JWT';
|
||||||
|
|
|
@ -77,6 +77,11 @@ class DeletesV1 extends Worker
|
||||||
$this->deleteCertificates($document);
|
$this->deleteCertificates($document);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case DELETE_TYPE_BUCKETS:
|
||||||
|
$bucket = new Document($this->args['document']);
|
||||||
|
$this->deleteBucket($bucket, $projectId);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
Console::error('No delete operation for type: '.$type);
|
Console::error('No delete operation for type: '.$type);
|
||||||
break;
|
break;
|
||||||
|
@ -352,6 +357,11 @@ class DeletesV1 extends Worker
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function deleteBucket(Document $document, string $projectId)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $projectId
|
* @param string $projectId
|
||||||
* @return Database
|
* @return Database
|
||||||
|
|
Loading…
Reference in a new issue