summaryrefslogtreecommitdiff
path: root/src/actions/lang.ts
blob: d54a2204c8879172f08cc6b3804da736ddcc4b87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
"use server";
import { AsyncRes } from "@/lib/types";
import db from "../lib/db";

export async function spacy(text: string, lang: string): AsyncRes<any> {
  const res = await call(formData, true);
  console.log("reg res", res);
  if ("error" in res) return { error: "Something went wrong" };
  else {
    return { success: true };
  }
}