Skip to content

Commit

Permalink
fix:sort permissions (#2165)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vardhaman619 authored Oct 3, 2024
1 parent 697aaa3 commit 713e831
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/dashboard/app/(app)/authorization/permissions/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ import { EmptyPlaceholder } from "@/components/dashboard/empty-placeholder";
import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
import { getTenantId } from "@/lib/auth";
import { db } from "@/lib/db";
import { asc, db } from "@/lib/db";
import { ChevronRight, Scan } from "lucide-react";
import Link from "next/link";
import { redirect } from "next/navigation";
import { CreateNewPermission } from "./create-new-permission";
import { permissions } from "@unkey/db/src/schema";

export const revalidate = 0;

Expand All @@ -18,6 +19,7 @@ export default async function RolesPage() {
and(eq(table.tenantId, tenantId), isNull(table.deletedAt)),
with: {
permissions: {
orderBy:[asc(permissions.name)],
with: {
keys: {
with: {
Expand Down

0 comments on commit 713e831

Please sign in to comment.