Fix edge function logging and types

This commit is contained in:
gpt-engineer-app[bot]
2025-11-03 19:57:27 +00:00
parent 99ceacfe0c
commit 6fbaf0c606
9 changed files with 175 additions and 62 deletions

View File

@@ -93,7 +93,16 @@ export function useEntityVersions(entityType: EntityType, entityId: string) {
return;
}
const versionsWithProfiles = (data || []).map((v: any) => ({
interface VersionWithProfile {
profiles?: {
username: string;
display_name: string;
avatar_url: string | null;
};
[key: string]: unknown;
}
const versionsWithProfiles = (data || []).map((v: VersionWithProfile) => ({
...v,
profiles: v.profiles || {
username: 'Unknown',