fix(resolve): fix resolve merge

This commit is contained in:
rstubryan
2025-11-03 09:35:09 +07:00
82 changed files with 754 additions and 736 deletions
+7 -4
View File
@@ -105,10 +105,13 @@ export class BaseApiService<T, CreatePayloadGeneric, UpdatePayloadGeneric> {
const url = options?.params
? `${urlBase}?${new URLSearchParams(
Object.entries(options.params).reduce((acc, [key, value]) => {
if (value !== undefined) acc[key] = String(value);
return acc;
}, {} as Record<string, string>)
Object.entries(options.params).reduce(
(acc, [key, value]) => {
if (value !== undefined) acc[key] = String(value);
return acc;
},
{} as Record<string, string>
)
)}`
: urlBase;
+1 -1
View File
@@ -140,4 +140,4 @@ export const FlockApi = new BaseApiService<
Flock,
CreateFlockPayload,
UpdateFlockPayload
>('/master-data/flocks');
>('/master-data/flocks');