mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
print error
This commit is contained in:
@@ -25,7 +25,7 @@ export const RoomByIdOutputDTOSchema = z.object({
|
|||||||
roomType: z.number(),
|
roomType: z.number(),
|
||||||
members: z.array(MemberSchema),
|
members: z.array(MemberSchema),
|
||||||
}),
|
}),
|
||||||
});
|
})
|
||||||
|
|
||||||
|
|
||||||
export type RoomByIdMemberItemOutputDTO = z.infer<typeof MemberSchema>
|
export type RoomByIdMemberItemOutputDTO = z.infer<typeof MemberSchema>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ const RoomListItemOutPutDTOSchema = z.object({
|
|||||||
createdAt: z.string(),
|
createdAt: z.string(),
|
||||||
expirationDate: z.string().nullable(), // api check
|
expirationDate: z.string().nullable(), // api check
|
||||||
roomType: z.number()
|
roomType: z.number()
|
||||||
});
|
})
|
||||||
|
|
||||||
|
|
||||||
// Define the schema for the entire response
|
// Define the schema for the entire response
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ export function captureAndReraiseAsync(taskName: string) {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
// Log the error along with taskName
|
// Log the error along with taskName
|
||||||
ColoredLoggerService.error('Capture error from', taskName, error)
|
ColoredLoggerService.error('Capture error from', taskName, error)
|
||||||
|
console.error(error)
|
||||||
// Re-throw the same error
|
// Re-throw the same error
|
||||||
return err(error) ;
|
return err(error) ;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user