nextcloud / app_api

Nextcloud AppAPI
https://apps.nextcloud.com/apps/app_api
GNU Affero General Public License v3.0
71 stars 6 forks source link

fix: TaskProcessingAPI - unregister provider endpoint #370

Closed bigcat88 closed 3 weeks ago

bigcat88 commented 3 weeks ago

Found this when writing a small test for nc_py_api

without this change $taskProcessingProvider->id are always null

$taskProcessingProvider = $this->getExAppTaskProcessingProvider($appId, $name);
if ($taskProcessingProvider !== null) {
    $this->mapper->delete($taskProcessingProvider);
    $this->resetCacheEnabled();
    return $taskProcessingProvider;
}