fix: import failing for LotusCustomization from live #1891

Merged
Sainan merged 3 commits from import-fix into main 2025-04-27 14:20:52 -07:00
Showing only changes of commit 8ffd37e937 - Show all commits

View File

@ -175,8 +175,8 @@ const convertNemesis = (client: INemesisClient): INemesisDatabase => {
};
};
// Empty objects from live may have been encoded as an empty array because of PHP.
export const convertItemConfig = <T extends IItemConfig>(client: T): T => {
// Empty objects from live may have been encoded as empty arrays because of PHP.
const convertItemConfig = <T extends IItemConfig>(client: T): T => {
return {
...client,
pricol: Array.isArray(client.pricol) ? {} : client.pricol,