Add publishing date (#107)

This commit is contained in:
Niklas Fondberg
2022-03-10 16:22:03 +01:00
committed by GitHub
parent c4e04dc616
commit cf6b1fd56e
8 changed files with 4166 additions and 4051 deletions
+2 -1
View File
@@ -12,6 +12,7 @@ SELECT products.productid AS id,
products.designerid,
products.inserted,
products.updated,
products.publishing_date,
products.ref1,
products.ref2,
products.ref3,
@@ -89,7 +90,7 @@ export function products(input: ProductsFilterInput) {
AND products.browsable = ${filter?.browsable ? '1' : '0'}`
: ``
}
ORDER BY products.inserted DESC
ORDER BY products.publishing_date DESC
LIMIT ${limit} OFFSET ${offset}
`
);