rename propertyName parameter
This commit is contained in:
1 parent
b062484798
commit
f463a4ce3f
4 files changed
+15
-15
No files matched your search
@@ -20,7 +20,7 @@ export function SessionProperties({ websiteId }: { websiteId: string }) {
|
||||
const { data, isLoading, isFetching, error } = usePropertyFieldsQuery('session', websiteId);
|
||||
const { data: scopedData } = useSessionDataPropertiesQuery(
|
||||
websiteId,
|
||||
propertyName ? { selectedPropertyName: propertyName, propertyFilters } : undefined,
|
||||
propertyName ? { propertyName, propertyFilters } : undefined,
|
||||
{ enabled: !!propertyName },
|
||||
);
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ export async function GET(
|
||||
const schema = z.object({
|
||||
startAt: z.coerce.number().int(),
|
||||
endAt: z.coerce.number().int(),
|
||||
selectedPropertyName: z.string().optional(),
|
||||
propertyName: z.string().optional(),
|
||||
...filterParams,
|
||||
});
|
||||
|
||||
@@ -29,7 +29,7 @@ export async function GET(
|
||||
return unauthorized();
|
||||
}
|
||||
|
||||
const { selectedPropertyName, ...rest } = query;
|
||||
const { propertyName, ...rest } = query;
|
||||
const filters = await getQueryFilters(rest, websiteId);
|
||||
const propertyFilters = parsePropertyFilters(query);
|
||||
|
||||
@@ -37,7 +37,7 @@ export async function GET(
|
||||
websiteId,
|
||||
filters,
|
||||
propertyFilters,
|
||||
selectedPropertyName,
|
||||
propertyName,
|
||||
);
|
||||
|
||||
return json(data);
|
||||
|
||||
Reference in new issue
Block a user