feat: add avatar field to user profile schema and update related mutations and queries

- Introduced an optional avatar field in the user profile schema to store the URL of the generated avatar.
- Updated the atualizarPerfil mutation to handle the new avatar field.
- Modified the obterPerfil and listarParaChat queries to include the avatar field in the returned user data.
This commit is contained in:
2025-11-21 20:34:04 -03:00
parent f167996a9f
commit 41f7942dd1
3 changed files with 11 additions and 8 deletions

View File

@@ -1,13 +1,10 @@
<script lang="ts">
import { resolve } from '$app/paths';
import { browser } from '$app/environment';
import { onMount } from 'svelte';
import type { ConstructorOfATypedSvelteComponent } from 'svelte/types/runtime/component';
import CybersecurityWizcard from '$lib/components/ti/CybersecurityWizcard.svelte';
// Usar tipo amplo para evitar conflitos de tipagem do import dinâmico no build
let Comp: any = null;
onMount(async () => {
const mod = await import('$lib/components/ti/CybersecurityWizcard.svelte');
Comp = mod.default;
});
let Comp: ConstructorOfATypedSvelteComponent<typeof CybersecurityWizcard> | null = null;
</script>
<svelte:head>