Skip to content

Instantly share code, notes, and snippets.

@Yengas
Created January 4, 2021 17:02
Show Gist options
  • Save Yengas/7d1a2740b762895dcc2d17d385f9c01c to your computer and use it in GitHub Desktop.
Save Yengas/7d1a2740b762895dcc2d17d385f9c01c to your computer and use it in GitHub Desktop.
export class ProductIntersectionRepository {
constructor(private readonly postgreSQLAdapter: PostgreSQLAdapter)
async getActiveAdvertisementProducts(
query: ProductIntersectionQuery
): Promise<AdvertisementWithProducts[]>
}
type ProductIntersectionQuery = {
sellerID: number;
startDateTime: Date;
endDateTime: Date;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment