Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
pozylon committed Nov 6, 2024
1 parent ef0a074 commit 9e97628
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export type AssortmentMediaModule = {

findAssortmentMedias: (
params: {
assortmentId?: string;
assortmentId?: mongodb.Filter<AssortmentMediaType>['assortmentId'];
limit?: number;
offset?: number;
tags?: Array<string>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export type ProductMediaModule = {

findProductMedias: (
params: {
productId?: string;
productId?: mongodb.Filter<ProductMedia>['assortmentId'];
limit?: number;
offset?: number;
tags?: Array<string>;
Expand Down
2 changes: 2 additions & 0 deletions packages/core-products/src/module/configureProductsModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ export type ProductsModule = {
options?: mongodb.FindOptions,
) => Promise<Array<Product>>;

findProductIds: (query: ProductQuery) => Promise<Array<string>>;

count: (query: ProductQuery) => Promise<number>;
productExists: (params: { productId?: string; slug?: string }) => Promise<boolean>;

Expand Down
2 changes: 1 addition & 1 deletion tests/product-texts.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('ProductText', () => {
subtitle: 'subtitle-et',
vendor: 'vendor-et',
};
const { data: { updateProductTexts } = {}, errors } = await graphqlFetch({
const { data: { updateProductTexts } = {} } = await graphqlFetch({
query: /* GraphQL */ `
mutation UpdateProductTexts($productId: ID!, $texts: [ProductTextInput!]!) {
updateProductTexts(productId: $productId, texts: $texts) {
Expand Down

0 comments on commit 9e97628

Please sign in to comment.