Log error

This commit is contained in:
MartinBraquet
2025-10-24 23:03:17 +02:00
parent fbc65e7e2a
commit c83a3e6315

View File

@@ -124,7 +124,10 @@ export async function getChannelMessages(props: {
[channelId, userId, limit, id],
convertPrivateChatMessage
))
if (error) throw new APIError(401, 'Error getting messages')
if (error) {
console.error(error)
throw new APIError(401, 'Error getting messages')
}
// console.log('final messages', data)
return data
}