blob: 99d42a02e04f9b095207a9c61f82614221134b6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
"use server";
import db from "../lib/db";
export async function testFn(lol: any) {
console.log({ lol });
return "lmao";
}
export async function testLogin(state: number, formdata: FormData) {
return state + 9;
}
// export async function testLogin({
// name,
// creds,
// }: {
// name: string;
// creds: string;
// }) {
// const res1 = db.loginUser(name, creds);
// console.log({ res1 });
// return res1;
// // const res = db.addUser(name, creds);
// // console.log({ res });
// // return res;
// }
|