Skip to content

Commit

Permalink
modify: create処理追加
Browse files Browse the repository at this point in the history
  • Loading branch information
kensiiwasaki committed Nov 23, 2023
1 parent 5892e24 commit 03985e0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/datasource/prisma/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,13 @@ export const deleteUserAllTask = async (userId: string) => {
},
});
};

export const createUserTask = async (ingredient: string, userId: string) => {
return prisma.task.create({
data: {
content: ingredient,
completed: false,
userId: userId,
},
});
};

0 comments on commit 03985e0

Please sign in to comment.