mirror of
https://gitea.gofwd.group/dstrawsb/ballistic-builder.git
synced 2025-12-06 02:36:44 -05:00
Merge branch 'develop' of ssh://gitea.gofwd.group:2225/dstrawsb/ballistic-builder into develop
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
"use server";
|
||||
import { eq, not } from "drizzle-orm";
|
||||
import { eq, not , asc} from "drizzle-orm";
|
||||
import { revalidatePath } from "next/cache";
|
||||
import { db } from "../db";
|
||||
import { brand } from "../db/schema/Brand";
|
||||
export const getData = async () => {
|
||||
const data = await db.select().from(brand);
|
||||
const data = await db.select().from(brand).orderBy(asc(brand.name));
|
||||
return data;
|
||||
};
|
||||
export const addBrand = async ( name: string) => {
|
||||
|
||||
Reference in New Issue
Block a user