♻️ Rename registration token to invite, add created by

This commit is contained in:
Meier Lukas
2023-08-01 11:43:24 +02:00
parent df890b8c0a
commit f93d935175
18 changed files with 109 additions and 97 deletions

View File

@@ -49,9 +49,9 @@ const CreateNewUserPage = () => {
});
const context = api.useContext();
const { mutateAsync, isLoading } = api.user.createUser.useMutation({
const { mutateAsync, isLoading } = api.user.create.useMutation({
onSettled: () => {
void context.user.getAll.invalidate();
void context.user.all.invalidate();
},
onSuccess: () => {
nextStep();