various fixes for github auth, get passing test coverage

This commit is contained in:
2024-09-29 17:03:30 -04:00
parent 64edba3cf8
commit d98f589031
13 changed files with 38 additions and 52 deletions

View File

@@ -1,4 +1,4 @@
import { Property, Required, MaxLength, Enum } from "@tsed/schema";
import { Property, Required, MaxLength, Enum, Description } from "@tsed/schema";
export class CreateLinkDto {
@Property()
@@ -11,4 +11,13 @@ export class CreateLinkDto {
@Required()
@MaxLength(100)
serviceIdentifier: string;
@Property()
@Required()
text: string;
@Property()
@Required()
@Description("The iv used to encrypt the text")
iv: string;
}

View File

@@ -1,6 +1,6 @@
import { Enum, MaxLength, Property, Required } from "@tsed/schema";
import { Column, Entity, ManyToOne, PrimaryColumn, JoinColumn, BeforeInsert } from "typeorm";
import { User } from "../User";
import { User } from "../user/User";
import { v4 as uuidv4 } from "uuid";
export type Service = "github";

View File

@@ -1,6 +1,6 @@
import { CollectionOf, MaxLength, Property, Required } from "@tsed/schema";
import { BeforeInsert, Column, Entity, OneToMany, PrimaryColumn } from "typeorm";
import { Link } from "./link/Link";
import { Link } from "../link/Link";
import { v4 as uuidv4 } from "uuid";
@Entity()