Skip to content

best way to save what you love

api: wait for cluster to finish preparing

jj3f505f6520c6
diff --git a/api/src/cobalt.js b/api/src/cobalt.js
index d4396ca5..5cac208d 100644
--- a/api/src/cobalt.js
+++ b/api/src/cobalt.js
@@ -21,7 +21,7 @@ if (env.apiURL) {
const { runAPI } = await import("./core/api.js");
if (isCluster) {
- initCluster();
+ await initCluster();
}
runAPI(express, app, __dirname, cluster.isPrimary);