mirror of
https://github.com/outline/outline.git
synced 2026-11-29 16:40:27 +03:00
chore: Export provisionFirstCollection, skip migration check when cloud hosted (#14116)
This commit is contained in:
1 parent
77e0fb1e51
commit
e51b9f3151
2 files changed
+15
-1
No files matched your search
@@ -247,7 +247,16 @@ async function accountProvisioner(
|
||||
};
|
||||
}
|
||||
|
||||
async function provisionFirstCollection(
|
||||
/**
|
||||
* Creates the default "Welcome" collection and onboarding documents for a
|
||||
* newly created team.
|
||||
*
|
||||
* @param ctx the request context.
|
||||
* @param team the team to provision the collection for.
|
||||
* @param user the user that will be recorded as the creator.
|
||||
* @returns a promise that resolves when the collection has been created.
|
||||
*/
|
||||
export async function provisionFirstCollection(
|
||||
ctx: APIContext,
|
||||
team: Team,
|
||||
user: User
|
||||
|
||||
@@ -73,6 +73,11 @@ export function configureChildHeapLimit(processCount: number) {
|
||||
* @returns a promise that resolves when the checks have completed successfully.
|
||||
*/
|
||||
export function checkPendingMigrations(): Promise<void> {
|
||||
// Migrations are run as a separate release step in the hosted service.
|
||||
if (env.isCloudHosted) {
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
return new Promise((resolve) => {
|
||||
const child = fork(
|
||||
path.join(__dirname, "..", "scripts", "checkMigrations.js"),
|
||||
|
||||
Reference in new issue
Block a user