Correção de erro 500 em mensagens (UUID), criação de tabela messages e tratamento defensivo no front-end para evitar crashes

This commit is contained in:
2026-04-03 16:12:53 +00:00
parent 4841dde110
commit 9a34502bd7
6 changed files with 26 additions and 9 deletions

View File

@@ -9,7 +9,7 @@ interface AuthProviderProps {
}
const defaultUser: AppUser = {
id: 'guest-user',
id: '00000000-0000-0000-0000-000000000000',
email: 'guest@gpi.app',
name: 'Guest User',
role: 'user',
@@ -18,7 +18,7 @@ const defaultUser: AppUser = {
updatedAt: new Date().toISOString()
};
const DEFAULT_ORGANIZATION_ID = 'default-org';
const DEFAULT_ORGANIZATION_ID = '00000000-0000-0000-0000-000000000001';
const DEFAULT_ORGANIZATION_NAME = 'Organização Padrão';
export const AuthProvider: React.FC<AuthProviderProps> = ({ children }) => {