(id: string, options: FileQueryOptions = {})
| 68 | } |
| 69 | |
| 70 | async delete(id: string, options: FileQueryOptions = {}): Promise<void> { |
| 71 | const conditions: SQL[] = [eq(files.id, id)]; |
| 72 | if (options.organizationId) { |
| 73 | conditions.push(eq(files.organizationId, options.organizationId)); |
| 74 | } |
| 75 | |
| 76 | await this.db.delete(files).where(and(...conditions)); |
| 77 | } |
| 78 | } |
no test coverage detected