移除旧版emby接口
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { NextRequest, NextResponse } from 'next/server';
|
||||
|
||||
import { getAuthInfoFromCookie } from '@/lib/auth';
|
||||
import { getConfig } from '@/lib/config';
|
||||
import { getConfig, setCachedConfig } from '@/lib/config';
|
||||
import { db } from '@/lib/db';
|
||||
|
||||
export const runtime = 'nodejs';
|
||||
@@ -64,6 +64,9 @@ export async function POST(request: NextRequest) {
|
||||
|
||||
await db.saveAdminConfig(adminConfig);
|
||||
|
||||
// 更新内存缓存
|
||||
await setCachedConfig(adminConfig);
|
||||
|
||||
return NextResponse.json({
|
||||
success: true,
|
||||
message: '导入成功',
|
||||
|
||||
Reference in New Issue
Block a user