Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fflorent committed May 2, 2024
1 parent bdd4d9b commit 79210fc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/common/UserAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ export class UserAPIImpl extends BaseAPI implements UserAPI {
}

public async getWorker(key: string): Promise<string> {
const json: PublicDocWorkerUrlInfo = (await this.requestJson(`${this._url}/api/worker/${key}`, {
const json = (await this.requestJson(`${this._url}/api/worker/${key}`, {
method: 'GET',
credentials: 'include'
})) as PublicDocWorkerUrlInfo;
Expand Down Expand Up @@ -1159,7 +1159,7 @@ export class DocAPIImpl extends BaseAPI implements DocAPI {
/**
* Reprensents information to build public doc worker url.
*
* Structure that may contain either **exlusively**:
* Structure that may contain either **exclusively**:
* - a selfPrefix when no pool of doc worker exist.
* - a public doc worker url otherwise.
*/
Expand Down
4 changes: 2 additions & 2 deletions app/server/lib/uploads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import * as multiparty from 'multiparty';
import fetch, {Response as FetchResponse} from 'node-fetch';
import * as path from 'path';
import * as tmp from 'tmp';
import { IDocWorkerMap } from './DocWorkerMap';
import { getDocWorkerInfoOrSelfPrefix } from './DocWorkerUtils';
import {IDocWorkerMap} from './DocWorkerMap';
import {getDocWorkerInfoOrSelfPrefix} from './DocWorkerUtils';

// After some time of inactivity, clean up the upload. We give an hour, which seems generous,
// except that if one is toying with import options, and leaves the upload in an open browser idle
Expand Down
2 changes: 1 addition & 1 deletion test/server/lib/DocApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ describe('DocApi', function () {
describe("should work behind a proxy", async () => {
let proxy: TestServerProxy;

const originalHeaders = new WeakMap<AxiosRequestConfig, AxiosRequestConfig<any>["headers"]>();
const originalHeaders = new WeakMap<AxiosRequestConfig, AxiosRequestConfig["headers"]>();
function iterateOverAccountHeaders (
cb: (account: AxiosRequestConfig) => AxiosRequestConfig<any>["headers"]
) {
Expand Down

0 comments on commit 79210fc

Please sign in to comment.