Fix wrong type

import, make auth and chat work
This commit is contained in:
Wuesteon 2025-12-04 23:25:25 +01:00
parent b8f9bc107c
commit 9c47119535
261 changed files with 24453 additions and 443 deletions

View file

@ -11,7 +11,8 @@ import {
NotFoundException,
} from '@nestjs/common';
import { AuthGuard, CurrentUser } from '@mana-core/nestjs-integration';
import { LinksService, type CreateLinkDto, type UpdateLinkDto } from '../services/links.service';
import { LinksService } from '../services/links.service';
import type { CreateLinkDto, UpdateLinkDto } from '../services/links.service';
@Controller('api/links')
@UseGuards(AuthGuard)

View file

@ -1,5 +1,6 @@
import { Module, Global, OnModuleDestroy, Logger } from '@nestjs/common';
import { getDb, closeDb, type Database } from '@manacore/uload-database';
import { getDb, closeDb } from '@manacore/uload-database';
import type { Database } from '@manacore/uload-database';
export const DATABASE_TOKEN = 'DATABASE';

View file

@ -1,16 +1,8 @@
import { Injectable, Inject, Logger } from '@nestjs/common';
import { DATABASE_TOKEN, type Database } from '../database.module';
import {
clicks,
type Click,
type NewClick,
eq,
desc,
sql,
and,
gte,
lte,
} from '@manacore/uload-database';
import { DATABASE_TOKEN } from '../database.module';
import type { Database } from '../database.module';
import { clicks, eq, desc, sql, and, gte, lte } from '@manacore/uload-database';
import type { Click, NewClick } from '@manacore/uload-database';
export interface ClickStats {
totalClicks: number;

View file

@ -1,16 +1,8 @@
import { Injectable, Inject, Logger } from '@nestjs/common';
import { DATABASE_TOKEN, type Database } from '../database.module';
import {
links,
type Link,
type NewLink,
eq,
and,
desc,
sql,
or,
ilike,
} from '@manacore/uload-database';
import { DATABASE_TOKEN } from '../database.module';
import type { Database } from '../database.module';
import { links, eq, and, desc, sql, or, ilike } from '@manacore/uload-database';
import type { Link, NewLink } from '@manacore/uload-database';
export interface ListLinksOptions {
page?: number;

View file

@ -1,6 +1,7 @@
import { Injectable, Logger } from '@nestjs/common';
import * as UAParser from 'ua-parser-js';
import { ClickRepository, type ClickStats } from '../database/repositories';
import { ClickRepository } from '../database/repositories';
import type { ClickStats } from '../database/repositories';
import { RedirectService } from './redirect.service';
import type { NewClick } from '@manacore/uload-database';

View file

@ -1,7 +1,8 @@
import { Injectable, Logger, BadRequestException } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { nanoid } from 'nanoid';
import { LinkRepository, type ListLinksOptions } from '../database/repositories';
import { LinkRepository } from '../database/repositories';
import type { ListLinksOptions } from '../database/repositories';
import type { Link, NewLink } from '@manacore/uload-database';
export interface CreateLinkDto {