spatie / medialibrary.pro

The source code of medialibrary.pro
https://medialibrary.pro
36 stars 9 forks source link

DeleteTemporaryUploadsCommand doesn't use tenant database connection #49

Closed andelwebsolutions closed 1 year ago

andelwebsolutions commented 1 year ago

The command fails with SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected (SQL: select * fromtemporary_uploadswherecreated_at<= 2022-12-14 00:00:02) because the command it not tenant aware (I am using spatie/laravel-multitenancy).

Is there any way for me to ? I have already tried to extend the Spatie\MediaLibraryPro\Models\TemporaryUpload class and adding the UsesTenantConnection concern. This did not fix the issue.

spatie-bot commented 1 year ago

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.