mirror of https://github.com/kortix-ai/suna.git
fix: check healthy when init
This commit is contained in:
parent
f10aa8da0b
commit
9a2ae7e09a
|
@ -419,7 +419,7 @@ app.post('/api/init', async (req, res) => {
|
|||
const {api_key} = req.body;
|
||||
const result = await browserAutomation.init(api_key);
|
||||
|
||||
if (result.status === "initialized") {
|
||||
if (result.status === "initialized" || result.status === "healthy") {
|
||||
res.status(200).json({
|
||||
"status": "healthy",
|
||||
"service": "browserApi"
|
||||
|
|
Loading…
Reference in New Issue