fix(dashboard): get properties and createdAt for profiles
This commit is contained in:
@@ -26,8 +26,6 @@ type Props =
|
|||||||
|
|
||||||
export const ProfilesTable = memo(
|
export const ProfilesTable = memo(
|
||||||
({ type, query, ...props }: Props) => {
|
({ type, query, ...props }: Props) => {
|
||||||
console.log('re-render');
|
|
||||||
|
|
||||||
const columns = useColumns(type);
|
const columns = useColumns(type);
|
||||||
const { data, isFetching, isLoading } = query;
|
const { data, isFetching, isLoading } = query;
|
||||||
|
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ export async function getProfiles(ids: string[], projectId: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const data = await chQuery<IClickhouseProfile>(
|
const data = await chQuery<IClickhouseProfile>(
|
||||||
`SELECT id, first_name, last_name, email, avatar, is_external
|
`SELECT id, first_name, last_name, email, avatar, is_external, properties, created_at
|
||||||
FROM ${TABLE_NAMES.profiles} FINAL
|
FROM ${TABLE_NAMES.profiles} FINAL
|
||||||
WHERE
|
WHERE
|
||||||
project_id = ${escape(projectId)} AND
|
project_id = ${escape(projectId)} AND
|
||||||
|
|||||||
Reference in New Issue
Block a user