Added the possibility to upload a file containing users to a group

This commit is contained in:
Tiago Ribeiro
2023-10-03 16:48:52 +01:00
parent 9239068cde
commit 07e73b0d88
10 changed files with 252 additions and 31 deletions

View File

@@ -15,7 +15,7 @@ export default function CodeGenerator() {
const code = uid.randomUUID(6);
axios
.post("/api/code", {type, code})
.post("/api/code", {type, codes: [code]})
.then(({data, status}) => {
if (data.ok) {
toast.success(`Successfully generated a ${capitalize(type)} code!`, {toastId: "success"});