mirror of
https://gitea.gofwd.group/dstrawsb/ballistic-builder.git
synced 2025-12-06 02:36:44 -05:00
11 lines
320 B
TypeScript
11 lines
320 B
TypeScript
"use server";
|
|
import { eq, not , asc} from "drizzle-orm";
|
|
import { revalidatePath } from "next/cache";
|
|
import { db } from "../db";
|
|
import { manufacturer } from "@schemas/schema";
|
|
export const getData = async () => {
|
|
const data = await db.select().from(manufacturer).orderBy(asc(manufacturer.name));
|
|
return data;
|
|
};
|
|
|