mirror of
https://gitea.gofwd.group/dstrawsb/ballistic-builder.git
synced 2025-12-06 02:36:44 -05:00
committing wiht errors wbut better than before, moved some stuff more moving coming,
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
import { eq, not , asc} from "drizzle-orm";
|
||||
import { revalidatePath } from "next/cache";
|
||||
import { db } from "../db";
|
||||
import { brand } from "../db/schema/Brand";
|
||||
import { brand } from "@db/schema/Brand";
|
||||
export const getData = async () => {
|
||||
const data = await db.select().from(brand).orderBy(asc(brand.name));
|
||||
return data;
|
||||
|
||||
10
src/actions/componentTypeActions.ts
Normal file
10
src/actions/componentTypeActions.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
"use server";
|
||||
import { eq, not , asc} from "drizzle-orm";
|
||||
import { revalidatePath } from "next/cache";
|
||||
import { db } from "../db";
|
||||
import { ComponentType } from "@db/schema/ComponentTypes";
|
||||
export const getData = async () => {
|
||||
const data = await db.select().from(ComponentType).orderBy(asc(ComponentType.name));
|
||||
return data;
|
||||
};
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { eq, not , asc} from "drizzle-orm";
|
||||
import { revalidatePath } from "next/cache";
|
||||
import { db } from "../db";
|
||||
import { manufacturer } from "@/db/schema/Manufacturer";
|
||||
import { manufacturer } from "@db/schema/Manufacturer";
|
||||
export const getData = async () => {
|
||||
const data = await db.select().from(manufacturer).orderBy(asc(manufacturer.name));
|
||||
return data;
|
||||
|
||||
Reference in New Issue
Block a user