move product_id to medusa_product_id, make all product relations one-to-one (#30)

Co-authored-by: Helena <helena@Helenas-MacBook-Pro.local>
This commit is contained in:
Helena
2025-07-04 14:33:23 +03:00
committed by GitHub
parent ad08155063
commit 848dbb1618
2 changed files with 343 additions and 1 deletions

View File

@@ -29,10 +29,10 @@ import {
UuringuGrupp,
} from '@/lib/types/medipost';
import { toArray } from '@/lib/utils';
import { Tables } from '@/supabase/database.types';
import axios from 'axios';
import { XMLParser } from 'fast-xml-parser';
import { uniqBy } from 'lodash';
import { Tables } from '@kit/supabase/database';
const BASE_URL = process.env.MEDIPOST_URL!;
const USER = process.env.MEDIPOST_USER!;