1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-09-20 01:31:34 +02:00

Fix some linting warnings

This commit is contained in:
Puyodead1 2023-08-06 22:49:38 -04:00
parent 3d0fdc8a1b
commit 033e2108e7
No known key found for this signature in database
GPG Key ID: A4FA4FEC0DD353FC
7 changed files with 6 additions and 6 deletions

View File

@ -16,7 +16,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import { checkToken, Config, Rights } from "@spacebar/util";
import { checkToken, Rights } from "@spacebar/util";
import * as Sentry from "@sentry/node";
import { NextFunction, Request, Response } from "express";
import { HTTPError } from "lambert-server";

View File

@ -19,7 +19,6 @@
import { route } from "@spacebar/api";
import {
checkToken,
Config,
Email,
FieldErrors,
generateToken,

View File

@ -22,7 +22,7 @@ const router = Router();
router.post("/", route({}), async (req: Request, res: Response) => {
// TODO:
const { connection_name, connection_id } = req.params;
// const { connection_name, connection_id } = req.params;
res.sendStatus(204);
});

View File

@ -30,7 +30,7 @@ export class ConnectedAccountDTO {
verified?: boolean;
visibility?: number;
integrations?: string[];
metadata_?: any;
metadata_?: unknown;
metadata_visibility?: number;
two_way_link?: boolean;

View File

@ -66,6 +66,7 @@ export class ConnectedAccount extends BaseClass {
integrations?: string[] = [];
@Column({ type: "simple-json", name: "metadata", nullable: true })
// eslint-disable-next-line @typescript-eslint/no-explicit-any
metadata_?: any;
@Column()

View File

@ -30,7 +30,7 @@ export interface ConnectedAccountSchema {
verified?: boolean;
visibility?: number;
integrations?: string[];
metadata_?: any;
metadata_?: unknown;
metadata_visibility?: number;
two_way_link?: boolean;
}

View File

@ -21,5 +21,5 @@ export interface ConnectionCallbackSchema {
state: string;
insecure: boolean;
friend_sync: boolean;
openid_params?: any; // TODO: types
openid_params?: unknown; // TODO: types
}