This commit is contained in:
Archer
2023-11-15 11:36:25 +08:00
committed by GitHub
parent 592e1a93a2
commit bfd8be5df0
181 changed files with 2499 additions and 1552 deletions

View File

@@ -11,7 +11,7 @@ type Props = {
teamId: string;
tmbId: string;
variables?: Record<string, any>;
isOwner: boolean;
updateUseTime: boolean;
source: `${ChatSourceEnum}`;
shareId?: string;
content: [ChatItemType, ChatItemType];
@@ -23,7 +23,7 @@ export async function saveChat({
teamId,
tmbId,
variables,
isOwner,
updateUseTime,
source,
shareId,
content
@@ -76,7 +76,7 @@ export async function saveChat({
);
}
if (isOwner && source === ChatSourceEnum.online) {
if (updateUseTime && source === ChatSourceEnum.online) {
promise.push(
MongoApp.findByIdAndUpdate(appId, {
updateTime: new Date()