feat(sync): harden the Hiboutik sync, share rate limits across instances, update dependencies (#4)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3,16 +3,15 @@ import { CategoryHiboutikService } from './category.hiboutik.service';
|
||||
import { CategoryConverter } from '../../models/converter/category.converter';
|
||||
import { CategoryHiboutikDto } from '../../models/hiboutikDTO/category.hiboutik.dto';
|
||||
|
||||
const hiboutikCategory = (id: number, parentId: number, overrides: Partial<CategoryHiboutikDto> = {}): CategoryHiboutikDto =>
|
||||
({
|
||||
category_id: id,
|
||||
category_name: `Category ${id}`,
|
||||
category_id_parent: parentId,
|
||||
category_enabled: 1,
|
||||
category_enabled_www: 0,
|
||||
category_position: 3,
|
||||
...overrides,
|
||||
}) as CategoryHiboutikDto;
|
||||
const hiboutikCategory = (id: number, parentId: number, overrides: Partial<CategoryHiboutikDto> = {}): CategoryHiboutikDto => ({
|
||||
category_id: id,
|
||||
category_name: `Category ${id}`,
|
||||
category_id_parent: parentId,
|
||||
category_enabled: 1,
|
||||
category_enabled_www: 0,
|
||||
category_position: 3,
|
||||
...overrides,
|
||||
});
|
||||
|
||||
describe('CategoryHiboutikService', () => {
|
||||
const categoryHiboutikRepository = { getCategories: jest.fn() };
|
||||
|
||||
Reference in New Issue
Block a user