organize imports
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import type { Request, Response } from "express";
|
||||
import type { User } from "@chessu/types";
|
||||
import xss from "xss";
|
||||
import { hash, verify } from "argon2";
|
||||
import type { Request, Response } from "express";
|
||||
import xss from "xss";
|
||||
|
||||
import { activeGames } from "../db/models/game.model.js";
|
||||
import { io } from "../server.js";
|
||||
import UserModel from "../db/models/user.model.js";
|
||||
import { io } from "../server.js";
|
||||
|
||||
export const getCurrentSession = async (req: Request, res: Response) => {
|
||||
try {
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import type { Request, Response } from "express";
|
||||
import GameModel, { activeGames } from "../db/models/game.model.js";
|
||||
import type { Game, User } from "@chessu/types";
|
||||
import type { Request, Response } from "express";
|
||||
import { nanoid } from "nanoid";
|
||||
|
||||
import GameModel, { activeGames } from "../db/models/game.model.js";
|
||||
|
||||
export const getGames = async (req: Request, res: Response) => {
|
||||
try {
|
||||
if (!req.query.id && !req.query.userid) {
|
||||
|
||||
Reference in New Issue
Block a user