Add arguments
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
import { Maybe } from '../types';
|
||||
|
||||
// Get syntax highlighting with vscode by installing "Comment tagged templates2
|
||||
|
||||
export function products(
|
||||
visible: boolean | null,
|
||||
browsable: boolean | null,
|
||||
limit: number = 100,
|
||||
visible: Maybe<boolean>,
|
||||
browsable: Maybe<boolean>,
|
||||
) {
|
||||
const query = /* sql */ `
|
||||
|
||||
@@ -55,7 +57,6 @@ export function products(
|
||||
AND products.browsable = ${browsable ? '1' : '0'}`
|
||||
: ``
|
||||
}
|
||||
GROUP BY products.productid
|
||||
LIMIT ${limit}
|
||||
`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user