mirror of
https://github.com/wasp-lang/open-saas.git
synced 2025-04-12 22:09:03 +02:00
Cleanup
This commit is contained in:
parent
e270084101
commit
f3128d6e9c
@ -206,7 +206,7 @@ export const createTask: CreateTask<CreateTaskInput, Task> = async (rawArgs, con
|
||||
|
||||
const task = await context.entities.Task.create({
|
||||
data: {
|
||||
description: description,
|
||||
description,
|
||||
user: { connect: { id: context.user.id } },
|
||||
},
|
||||
});
|
||||
@ -231,11 +231,11 @@ export const updateTask: UpdateTask<UpdateTaskInput, Task> = async (rawArgs, con
|
||||
|
||||
const task = await context.entities.Task.update({
|
||||
where: {
|
||||
id: id,
|
||||
id,
|
||||
},
|
||||
data: {
|
||||
isDone: isDone,
|
||||
time: time,
|
||||
isDone,
|
||||
time,
|
||||
},
|
||||
});
|
||||
|
||||
|
@ -30,7 +30,7 @@ export const updateIsUserAdminById: UpdateIsUserAdminById<UpdateUserAdminByIdInp
|
||||
|
||||
const updatedUser = await context.entities.User.update({
|
||||
where: {
|
||||
id: id,
|
||||
id,
|
||||
},
|
||||
data: {
|
||||
isAdmin: data.isAdmin,
|
||||
|
Loading…
x
Reference in New Issue
Block a user