mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 17:30:16 +01:00
feat: enhance terms acceptance response to include acceptance timestamp
This commit is contained in:
parent
4fe9e98442
commit
d6d61254ad
3 changed files with 7 additions and 3 deletions
|
|
@ -96,7 +96,10 @@ const acceptTermsController = async (req, res) => {
|
|||
if (!user) {
|
||||
return res.status(404).json({ message: 'User not found' });
|
||||
}
|
||||
res.status(200).json({ message: 'Terms accepted successfully' });
|
||||
res.status(200).json({
|
||||
message: 'Terms accepted successfully',
|
||||
termsAcceptedAt: user.termsAcceptedAt,
|
||||
});
|
||||
} catch (error) {
|
||||
logger.error('Error accepting terms:', error);
|
||||
res.status(500).json({ message: 'Error accepting terms' });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue