mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-22 10:22:39 +01:00
Fix some linting warnings
This commit is contained in:
parent
3d0fdc8a1b
commit
033e2108e7
@ -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";
|
||||
|
@ -19,7 +19,6 @@
|
||||
import { route } from "@spacebar/api";
|
||||
import {
|
||||
checkToken,
|
||||
Config,
|
||||
Email,
|
||||
FieldErrors,
|
||||
generateToken,
|
||||
|
@ -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);
|
||||
});
|
||||
|
||||
|
@ -30,7 +30,7 @@ export class ConnectedAccountDTO {
|
||||
verified?: boolean;
|
||||
visibility?: number;
|
||||
integrations?: string[];
|
||||
metadata_?: any;
|
||||
metadata_?: unknown;
|
||||
metadata_visibility?: number;
|
||||
two_way_link?: boolean;
|
||||
|
||||
|
@ -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()
|
||||
|
@ -30,7 +30,7 @@ export interface ConnectedAccountSchema {
|
||||
verified?: boolean;
|
||||
visibility?: number;
|
||||
integrations?: string[];
|
||||
metadata_?: any;
|
||||
metadata_?: unknown;
|
||||
metadata_visibility?: number;
|
||||
two_way_link?: boolean;
|
||||
}
|
||||
|
@ -21,5 +21,5 @@ export interface ConnectionCallbackSchema {
|
||||
state: string;
|
||||
insecure: boolean;
|
||||
friend_sync: boolean;
|
||||
openid_params?: any; // TODO: types
|
||||
openid_params?: unknown; // TODO: types
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user