File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,19 @@ export class FilesController
184
184
185
185
const filesTable = builder . SetPrimaryTable ( "files" ) ;
186
186
187
+ const filesDeletedTable = builder . AddJoin ( {
188
+ type : "LEFT" ,
189
+ tableName : "files_deleted" ,
190
+ conditions : [
191
+ {
192
+ column : "fileId" ,
193
+ operator : "=" ,
194
+ joinTable : filesTable ,
195
+ joinTableColumn : "id"
196
+ }
197
+ ]
198
+ } ) ;
199
+
187
200
builder . AddCondition ( {
188
201
combination : "AND" ,
189
202
conditions : [
@@ -207,6 +220,11 @@ export class FilesController
207
220
operator : "LIKE" ,
208
221
constant : "%" + mediaTypeFilter + "%"
209
222
} ,
223
+ {
224
+ operand : { table : filesDeletedTable , column : "deletionTime" } ,
225
+ operator : "IS" ,
226
+ constant : null
227
+ }
210
228
]
211
229
} ) ;
212
230
builder . SetColumns ( [
You can’t perform that action at this time.
0 commit comments