feat: melhorar gerenciamento de acesso remoto de máquinas
This commit is contained in:
parent
714b199879
commit
192a5c2909
5 changed files with 664 additions and 261 deletions
|
|
@ -18,6 +18,10 @@ export const ensureDefaults = mutation({
|
|||
await ctx.db.patch(queue._id, { name: "Laboratório", slug: "laboratorio" });
|
||||
return (await ctx.db.get(queue._id)) ?? queue;
|
||||
}
|
||||
if (queue.name === "Field Services" || queue.slug === "field-services") {
|
||||
await ctx.db.patch(queue._id, { name: "Visitas", slug: "visitas" });
|
||||
return (await ctx.db.get(queue._id)) ?? queue;
|
||||
}
|
||||
return queue;
|
||||
})
|
||||
);
|
||||
|
|
@ -25,7 +29,7 @@ export const ensureDefaults = mutation({
|
|||
const queues = [
|
||||
{ name: "Chamados", slug: "chamados" },
|
||||
{ name: "Laboratório", slug: "laboratorio" },
|
||||
{ name: "Field Services", slug: "field-services" },
|
||||
{ name: "Visitas", slug: "visitas" },
|
||||
];
|
||||
for (const q of queues) {
|
||||
await ctx.db.insert("queues", { tenantId, name: q.name, slug: q.slug, teamId: undefined });
|
||||
|
|
@ -33,4 +37,3 @@ export const ensureDefaults = mutation({
|
|||
}
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue