Skip to content

Commit

Permalink
added data type conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
arogya01 committed Oct 25, 2024
1 parent b7373c4 commit 7a3e647
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/chat/chat.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,10 @@ export const createMessage = async ({
valueType: MediaType;
senderId: number;
}) => {

const message = await prisma.message.create({
data: {
conversationId,
conversationId:Number(conversationId),
senderId,
media: {
create: {
Expand Down

0 comments on commit 7a3e647

Please sign in to comment.