We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8285c3 commit 28771adCopy full SHA for 28771ad
service/src/data-access/FilesController.ts
@@ -184,6 +184,19 @@ export class FilesController
184
185
const filesTable = builder.SetPrimaryTable("files");
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
+
200
builder.AddCondition({
201
combination: "AND",
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([
0 commit comments