various fixes for github auth, get passing test coverage
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -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";
|
||||
|
@@ -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()
|
Reference in New Issue
Block a user