Created
January 4, 2021 17:02
-
-
Save Yengas/7d1a2740b762895dcc2d17d385f9c01c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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