mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-24 03:04:21 +01:00
wip: zen
This commit is contained in:
@@ -58,10 +58,6 @@ const removeMember = action(async (form: FormData) => {
|
||||
|
||||
const updateMember = action(async (form: FormData) => {
|
||||
"use server"
|
||||
console.log("!@#!@ Form data entries:")
|
||||
for (const [key, value] of form.entries()) {
|
||||
console.log(`!@#!@ ${key}:`, value)
|
||||
}
|
||||
|
||||
const id = form.get("id")?.toString()
|
||||
if (!id) return { error: "ID is required" }
|
||||
@@ -73,8 +69,6 @@ const updateMember = action(async (form: FormData) => {
|
||||
const monthlyLimit = limit && limit.trim() !== "" ? parseInt(limit) : null
|
||||
if (monthlyLimit !== null && monthlyLimit < 0) return { error: "Set a valid monthly limit" }
|
||||
|
||||
console.log({ id, role, monthlyLimit, limit })
|
||||
|
||||
return json(
|
||||
await withActor(
|
||||
() =>
|
||||
|
||||
Reference in New Issue
Block a user