mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
Fixes webhook use-before-define
This commit is contained in:
parent
5b79d4b206
commit
425fddcf69
@ -64,6 +64,8 @@ let docs: TestServer;
|
|||||||
let userApi: UserAPIImpl;
|
let userApi: UserAPIImpl;
|
||||||
let extraHeadersForConfig = {};
|
let extraHeadersForConfig = {};
|
||||||
|
|
||||||
|
const webhooksTestPort = Number(process.env.WEBHOOK_TEST_PORT || 34365);
|
||||||
|
|
||||||
function makeConfig(username: string): AxiosRequestConfig {
|
function makeConfig(username: string): AxiosRequestConfig {
|
||||||
const originalConfig = configForUser(username);
|
const originalConfig = configForUser(username);
|
||||||
return {
|
return {
|
||||||
@ -5385,8 +5387,6 @@ async function getWorkspaceId(api: UserAPIImpl, name: string) {
|
|||||||
return workspaces.find((w) => w.name === name)!.id;
|
return workspaces.find((w) => w.name === name)!.id;
|
||||||
}
|
}
|
||||||
|
|
||||||
const webhooksTestPort = Number(process.env.WEBHOOK_TEST_PORT || 34365);
|
|
||||||
|
|
||||||
async function setupDataDir(dir: string) {
|
async function setupDataDir(dir: string) {
|
||||||
// we'll be serving Hello.grist content for various document ids, so let's make copies of it in
|
// we'll be serving Hello.grist content for various document ids, so let's make copies of it in
|
||||||
// tmpDir
|
// tmpDir
|
||||||
|
Loading…
Reference in New Issue
Block a user