This commit is contained in:
Kenio 2025-11-14 17:37:16 -03:00
parent fa802e3e55
commit 2599c8fdbf
2 changed files with 6 additions and 2 deletions

View file

@ -70,7 +70,6 @@ export default function ClientePage() {
await safeRun("schema do banco", async () => {
await fetchLogDatabaseSchema();
console.log("Schema do Banco de Dados:", logDatabaseSchema); // ainda funciona igual
});
await safeRun("log do GED", () => fetchLogGed(Number(id)));
@ -85,6 +84,12 @@ export default function ClientePage() {
fetchSequentially();
}, [id]);
useEffect(() => {
if (logDatabaseSchema) {
console.log("Schema do Banco de Dados atualizado:", logDatabaseSchema);
}
}, [logDatabaseSchema]);
// Formata data e hora do log do servidor
const { formattedDate, formattedTime, isOutdated } = formatLogDateTime(
logServer?.data,

View file

@ -13,7 +13,6 @@ export const useLogDatabaseSchemaHook = () => {
try {
const response = await LogDatabaseSchemaService();
console.log("Resposta do LogDatabaseSchemaService:", response);
setLog(response as LogDatabaseSchemaInterface);
setResponse(response);
} catch (error) {