findByImagePath: do not check for draft because it's internally ...

This commit is contained in:
Andreas Knuth 2024-05-28 14:19:32 -05:00
parent 902ab9caed
commit e87222d3c1
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ export class ListingsService {
const result = await this.conn
.select()
.from(commercials)
.where(and(sql`${commercials.imagePath} = ${imagePath}`, sql`${commercials.serialId} = ${serial}`, ne(commercials.draft, true)));
.where(and(sql`${commercials.imagePath} = ${imagePath}`, sql`${commercials.serialId} = ${serial}`));
return result[0] as CommercialPropertyListing;
}
async createListing(data: BusinessListing | CommercialPropertyListing, table: typeof businesses | typeof commercials): Promise<BusinessListing | CommercialPropertyListing> {