feat: Introduce structured table definitions in convex/tables for various entities and remove the todos example table.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { Infer, v } from 'convex/values';
|
||||
import { query, mutation } from './_generated/server';
|
||||
import { internal } from './_generated/api';
|
||||
import { simboloTipo } from './schema';
|
||||
import { getCurrentUserFunction } from './auth';
|
||||
import { simboloTipo } from './tables/funcionarios';
|
||||
|
||||
// Validadores para campos opcionais
|
||||
const sexoValidator = v.optional(
|
||||
@@ -60,7 +60,7 @@ export const getAll = query({
|
||||
recurso: 'funcionarios',
|
||||
acao: 'listar'
|
||||
});
|
||||
} catch (error) {
|
||||
} catch {
|
||||
// Se não tiver permissão, retornar array vazio
|
||||
return [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user