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