|
@@ -3,11 +3,11 @@ import { TipiCache } from '@/server/core/TipiCache';
|
|
|
export async function GET() {
|
|
|
try {
|
|
|
const cache = new TipiCache('getStatus');
|
|
|
- const status = (await cache.get('status')) || 'RUNNING';
|
|
|
+ const status = await cache.get('status');
|
|
|
await cache.close();
|
|
|
|
|
|
- return Response.json({ success: true, status });
|
|
|
+ return Response.json({ success: true, status: status || 'RUNNING' });
|
|
|
} catch (error) {
|
|
|
- return Response.json({ success: false, error });
|
|
|
+ return Response.json({ success: false, status: 'RUNNING' });
|
|
|
}
|
|
|
}
|