4.8.13 test (#3087)

* fix: image expired

* fix: datacard navbar ui

* perf: build action
This commit is contained in:
Archer
2024-11-07 14:01:00 +08:00
committed by archer
parent 34fbd5a223
commit f1fb85ead0
4 changed files with 46 additions and 4 deletions

View File

@@ -9,6 +9,7 @@ import type { ReadFileResponse } from '../../../worker/readFile/type';
import axios from 'axios';
import { addLog } from '../../system/log';
import { batchRun } from '@fastgpt/global/common/fn/utils';
import { addHours } from 'date-fns';
export type readRawTextByLocalFileParams = {
teamId: string;
@@ -111,6 +112,7 @@ export const readRawContentByFileBuffer = async ({
type: MongoImageTypeEnum.collectionImage,
base64Img: `data:${item.mime};base64,${item.base64}`,
teamId,
expiredTime: addHours(new Date(), 1),
metadata: {
...metadata,
mime: item.mime