npm workspaces, NodeNext for server
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
import { Pool } from "pg";
|
||||
import pg from "pg";
|
||||
|
||||
export const db = new Pool();
|
||||
export const db = new pg.Pool();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { db } from "..";
|
||||
import { Game } from "@types";
|
||||
import { db } from "../index.js";
|
||||
import type { Game } from "@chessu/types";
|
||||
|
||||
export const activeGames: Array<Game> = [];
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { db } from "..";
|
||||
import type { User } from "@types";
|
||||
import { db } from "../index.js";
|
||||
import type { User } from "@chessu/types";
|
||||
|
||||
const create = async (user: User, password: string) => {
|
||||
if (user.name === "Guest" || user.email === undefined) {
|
||||
|
||||
Reference in New Issue
Block a user