Skip to content

Commit

Permalink
Add log to admin panel
Browse files Browse the repository at this point in the history
Relate to Giveth#5
  • Loading branch information
FatemeGhasemi committed May 9, 2022
1 parent 8076293 commit 0c0c1c8
Show file tree
Hide file tree
Showing 3 changed files with 249 additions and 36 deletions.
25 changes: 12 additions & 13 deletions src/entities/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,33 +20,32 @@ export const LogStatus = {
export class Log extends BaseEntity {
@PrimaryGeneratedColumn()
readonly id: number;
@Column()
trackId: string;
@Column()
status: string;

@CreateDateColumn()
createdAt: Date;
@Column()
url: string;
@Column()
method: string;

@Column('text', { nullable: true })
scope?: string;

@UpdateDateColumn()
updatedAt: Date;

@Column()
status: string;
method: string;
@Column('text', { nullable: true })
ip?: string;
@Column('integer', { nullable: true })
statusCode?: number;
@Column('text', { nullable: true })
error?: string;
@Column()
trackId: string;
@Column('text', { nullable: true })
result?: string;
// @CreateDateColumn({ type: "timestamp", default: () => "CURRENT_TIMESTAMP(1)" })
// createdAt: Date;
// @UpdateDateColumn({ type: "timestamp", default: () => "CURRENT_TIMESTAMP(1)", onUpdate: "CURRENT_TIMESTAMP(1)" })
// updatedAt: Date;
@CreateDateColumn()
createdAt: Date;
@UpdateDateColumn()
updatedAt: Date;
@Index()
@ManyToOne(_type => Application)
application?: Application;
Expand Down
Loading

0 comments on commit 0c0c1c8

Please sign in to comment.