Files
sorvor-back/app/inside/action.ts
Thanu Poptiphueng 98a65043c9
Some checks failed
backend-action / build-image (push) Failing after 10m40s
add total to zone
2024-05-20 15:26:18 +07:00

14 lines
305 B
TypeScript

"use server";
import { db } from "@/src/db";
import { user } from "@/src/schema";
import { inArray } from "drizzle-orm";
export async function saveUser(cids: string[]) {
let rs = await db
.update(user)
.set({ verified: true })
.where(inArray(user.cid, cids))
.execute();
return rs;
}