feat: update ESLint and TypeScript configurations across frontend and backend; enhance component structure and improve data handling in various modules
This commit is contained in:
@@ -45,7 +45,7 @@ export const listarTodos = query({
|
||||
try {
|
||||
const funcionario = await ctx.db.get(a.funcionarioId);
|
||||
const criadoPor = await ctx.db.get(a.criadoPor);
|
||||
|
||||
|
||||
// Buscar foto do perfil do funcionário através do usuário associado
|
||||
let fotoPerfilUrl: string | null = null;
|
||||
if (funcionario) {
|
||||
@@ -57,7 +57,7 @@ export const listarTodos = query({
|
||||
fotoPerfilUrl = await ctx.storage.getUrl(usuario.fotoPerfil);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return {
|
||||
...a,
|
||||
funcionario,
|
||||
@@ -88,7 +88,7 @@ export const listarTodos = query({
|
||||
const licencaOriginal = l.licencaOriginalId
|
||||
? await ctx.db.get(l.licencaOriginalId)
|
||||
: null;
|
||||
|
||||
|
||||
// Buscar foto do perfil do funcionário através do usuário associado
|
||||
let fotoPerfilUrl: string | null = null;
|
||||
if (funcionario) {
|
||||
@@ -100,7 +100,7 @@ export const listarTodos = query({
|
||||
fotoPerfilUrl = await ctx.storage.getUrl(usuario.fotoPerfil);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return {
|
||||
...l,
|
||||
funcionario,
|
||||
|
||||
Reference in New Issue
Block a user