diff --git a/src/lib/services/furni-import.ts b/src/lib/services/furni-import.ts index 392f75db..400db6b0 100644 --- a/src/lib/services/furni-import.ts +++ b/src/lib/services/furni-import.ts @@ -783,7 +783,7 @@ export async function importSingleFurni(params: { const price = autoPriceFurni(classname); await db.execute(sql` UPDATE catalog_items - SET page_id = ${pageIdStr}, cost_credits = ${price.credits}, cost_points = ${price.points}, points_type = ${price.pointsType} + SET page_id = ${pageIdStr}, cost_credits = ${price.credits}, cost_points = ${price.points}, points_type = ${price.pointsType}, offer_id = ${spriteId} WHERE id = ${catalogItemId} `); catalogUpdated = true; @@ -803,7 +803,7 @@ export async function importSingleFurni(params: { catalogItemId = await allocateCatalogItemId(async (nextCatalogId) => { await db.execute(sql` INSERT INTO catalog_items (id, page_id, item_ids, catalog_name, cost_credits, cost_points, points_type, amount, order_number, offer_id, extradata) - VALUES (${nextCatalogId}, ${pageIdStr}, ${itemIdStr}, ${classname}, ${price.credits}, ${price.points}, ${price.pointsType}, 1, 1, '-1', '') + VALUES (${nextCatalogId}, ${pageIdStr}, ${itemIdStr}, ${classname}, ${price.credits}, ${price.points}, ${price.pointsType}, 1, 1, ${spriteId}, '') `); return nextCatalogId; });