https://github.com/serifcolakel/requester-app
https://github.com/serifcolakel/requester-app
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/serifcolakel/requester-app
- Owner: serifcolakel
- Created: 2024-04-06T22:29:38.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-27T23:46:21.000Z (about 1 year ago)
- Last Synced: 2025-02-19T13:08:05.419Z (4 months ago)
- Language: TypeScript
- Homepage: https://requester-app-kappa.vercel.app
- Size: 808 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
const handleCreateVariable = async (formData: FormData) => {
"use server";const { userId } = auth();
if (!userId) {
throw new Error("User not authenticated");
}const name = formData.get("name") as string;
const value = formData.get("value") as string;
await db.variable.create({
data: {
name,
value,
environmentId: userId,
},
});};