feat(server): grandfather existing cloud instances onto Professional
This commit is contained in:
@@ -59,6 +59,13 @@ func main() {
|
||||
log.Fatalf("scoped collection check failed: %v", assertErr)
|
||||
}
|
||||
|
||||
gfCtx, gfCancel := context.WithTimeout(context.Background(), 2*time.Minute)
|
||||
gfErr := services.MigrateGrandfatherLicences(gfCtx, db.Database)
|
||||
gfCancel()
|
||||
if gfErr != nil {
|
||||
log.Fatalf("licence grandfather migration failed: %v", gfErr)
|
||||
}
|
||||
|
||||
if err := services.EnsureAuthIndexes(); err != nil {
|
||||
log.Fatalf("failed to ensure auth indexes: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user