15: added preliminary tests for product and products (#17)
* Merge * 15: added preliminary tests for product and products Co-authored-by: Niklas Fondberg <niklas.fondberg@photowall.se>
This commit is contained in:
co-authored by
Niklas Fondberg
parent
2b67bc506f
commit
cbb0024359
@@ -95,6 +95,15 @@ for (const id of [...Array(N + 1).keys()].slice(1)) {
|
||||
pricepremium_framed_print: 18,
|
||||
});
|
||||
|
||||
// Since the graphql query for designers is
|
||||
// sorted on name we force the second designer
|
||||
// to to top of the name sort.
|
||||
// This is because we insert order-rows on designer with
|
||||
// id = 2
|
||||
if (id === 2) {
|
||||
key.name = `'a'`;
|
||||
}
|
||||
|
||||
const insertString = `INSERT INTO public.designers (designerid, name, path, username, password, co, street, zipcode, city, territory, phone, email, orgnr, currency, commission, commission_resale, balance, description, comments, status, inserted, updated, license_image, type, segmentation, visible_search, visible_list, visible_productpage, visible_designerpage, sort_desc, no_follow, logotype, automatic_payout, pricepremium_wallpaper, pricepremium_canvas, pricepremium_poster, pricepremium_framed_print, wallpaper_image_id, canvas_image_id, poster_image_id, framed_print_image_id) VALUES (${Object.values(
|
||||
key,
|
||||
).join(', ')});`;
|
||||
|
||||
Reference in New Issue
Block a user