fix: 修正meili_search_config类型
This commit is contained in:
@ -118,11 +118,11 @@ export default defineEndpoint({
|
||||
if (meiliConfigs.length === 0) {
|
||||
return res.status(500).json({ success: false, message: 'MeiliSearch 全局配置未设置' });
|
||||
}
|
||||
const { host, apiKey } = meiliConfigs[0] || { host: '', apiKey: '' };
|
||||
const { host, api_key } = meiliConfigs[0] || { host: '', api_key: '' };
|
||||
|
||||
const client = new MeiliSearch({
|
||||
host,
|
||||
apiKey,
|
||||
host: host,
|
||||
apiKey: api_key,
|
||||
})
|
||||
const result: any[] = [];
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
*/
|
||||
export interface MeiliSearchConfig {
|
||||
host: string;
|
||||
apiKey: string;
|
||||
api_key: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user