Had the type hardcoded

This commit is contained in:
Carlos Mesquita
2024-09-08 22:47:43 +01:00
parent 6f534662e1
commit 02564c8426

View File

@@ -161,7 +161,7 @@ export default function BatchCreateUser({user, users, permissions, onFinish}: Pr
setIsLoading(true);
try {
await axios.post("/api/batch_users", { users: newUsers.map(user => ({...user, type: "superadmin", expiryDate})) });
await axios.post("/api/batch_users", { users: newUsers.map(user => ({...user, type, expiryDate})) });
toast.success(`Successfully added ${newUsers.length} user(s)!`);
onFinish();
} catch {