Skip to content

Commit

Permalink
regression: server randomly failing on startup (RocketChat#33675)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo authored Oct 19, 2024
1 parent 1421f25 commit 5f3ae1c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion apps/meteor/ee/app/license/server/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
import './settings';
import './methods';
import './airGappedRestrictions';
1 change: 1 addition & 0 deletions apps/meteor/ee/app/license/server/startup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export const startLicense = async () => {
return new Promise<void>((resolve) => {
// When settings are loaded, apply the current license if there is one.
settings.onReady(async () => {
import('./airGappedRestrictions');
if (!(await applyLicense(settings.get<string>('Enterprise_License') ?? '', false))) {
// License from the envvar is always treated as new, because it would have been saved on the setting if it was already in use.
if (process.env.ROCKETCHAT_LICENSE && !License.hasValidLicense()) {
Expand Down

0 comments on commit 5f3ae1c

Please sign in to comment.