more, more, more

This commit is contained in:
2024-11-22 16:16:04 -05:00
parent c0ae295734
commit 4c37b9b248
11 changed files with 69 additions and 8 deletions

View File

@@ -0,0 +1,10 @@
"use server";
import { eq, not , asc} from "drizzle-orm";
import { revalidatePath } from "next/cache";
import { db } from "../db";
import { manufacturer } from "@/db/schema/Manufacturer";
export const getData = async () => {
const data = await db.select().from(manufacturer).orderBy(asc(manufacturer.name));
return data;
};