api: wait for cluster to finish preparing

This commit is contained in:
jj 2024-11-01 13:30:32 +00:00
parent 2317da5ba5
commit 3f505f6520
No known key found for this signature in database

View file

@ -21,7 +21,7 @@ if (env.apiURL) {
const { runAPI } = await import("./core/api.js"); const { runAPI } = await import("./core/api.js");
if (isCluster) { if (isCluster) {
initCluster(); await initCluster();
} }
runAPI(express, app, __dirname, cluster.isPrimary); runAPI(express, app, __dirname, cluster.isPrimary);