FIx linter
This commit is contained in:
@@ -402,9 +402,9 @@ export class DocumentsController {
|
|||||||
* @returns {CompanyExecutionContext}
|
* @returns {CompanyExecutionContext}
|
||||||
*/
|
*/
|
||||||
const getDriveExecutionContext = (
|
const getDriveExecutionContext = (
|
||||||
req: FastifyRequest<{ Params: { company_id: string }; Querystring: { public_token?: string } }>,
|
req: FastifyRequest<{ Params: { company_id: string }; Querystring?: { public_token?: string } }>,
|
||||||
): DriveExecutionContext => ({
|
): DriveExecutionContext => ({
|
||||||
public_token: req.query.public_token,
|
public_token: req.query?.public_token,
|
||||||
user: req.currentUser,
|
user: req.currentUser,
|
||||||
company: { id: req.params.company_id },
|
company: { id: req.params.company_id },
|
||||||
url: req.url,
|
url: req.url,
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ import {
|
|||||||
ListResult,
|
ListResult,
|
||||||
Pagination,
|
Pagination,
|
||||||
} from "../../../core/platform/framework/api/crud-service";
|
} from "../../../core/platform/framework/api/crud-service";
|
||||||
import { uniq } from "lodash";
|
|
||||||
|
|
||||||
import { CrudController } from "../../../core/platform/services/webserver/types";
|
import { CrudController } from "../../../core/platform/services/webserver/types";
|
||||||
import {
|
import {
|
||||||
|
|||||||
Reference in New Issue
Block a user