mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 21:13:50 +00:00
4.6.7 first pr (#726)
This commit is contained in:
@@ -9,17 +9,15 @@ export const updateOutLinkUsage = async ({
|
||||
shareId: string;
|
||||
total: number;
|
||||
}) => {
|
||||
try {
|
||||
await MongoOutLink.findOneAndUpdate(
|
||||
{ shareId },
|
||||
{
|
||||
$inc: { total },
|
||||
lastTime: new Date()
|
||||
}
|
||||
);
|
||||
} catch (err) {
|
||||
MongoOutLink.findOneAndUpdate(
|
||||
{ shareId },
|
||||
{
|
||||
$inc: { total },
|
||||
lastTime: new Date()
|
||||
}
|
||||
).catch((err) => {
|
||||
console.log('update shareChat error', err);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
export const pushResult2Remote = async ({
|
||||
|
Reference in New Issue
Block a user