mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-05-14 10:05:25 -04:00
Log error
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user