mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-02 21:32:10 +03:00
fix(codex): persist fast-tier toggle before applying runtime state
This commit is contained in:
@@ -35,7 +35,7 @@ export async function PUT(request: Request) {
|
||||
},
|
||||
{ status: 400 }
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
const validation = validateBody(updateCodexServiceTierSchema, rawBody);
|
||||
@@ -44,8 +44,8 @@ export async function PUT(request: Request) {
|
||||
}
|
||||
|
||||
const config = validation.data;
|
||||
setDefaultFastServiceTierEnabled(config.enabled);
|
||||
await updateSettings({ codexServiceTier: config });
|
||||
setDefaultFastServiceTierEnabled(config.enabled);
|
||||
|
||||
return NextResponse.json(config);
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user