chore: debug log 仅输出app的log fix(commons): fix sanitize not return value. feat(webhooks): add gitea webhooks api. Co-authored-by: Ivan Li <ivanli@live.cn> Co-authored-by: Ivan <ivanli@live.cn> Reviewed-on: #2 Co-Authored-By: Ivan Li <ivan@noreply.%(DOMAIN)s> Co-Committed-By: Ivan Li <ivan@noreply.%(DOMAIN)s>
20 lines
518 B
TypeScript
20 lines
518 B
TypeScript
import { Column, Entity } from 'typeorm';
|
|
import { AppBaseEntity } from './../commons/entities/app-base-entity';
|
|
import { SourceService } from './enums/source-service.enum';
|
|
|
|
@Entity()
|
|
export class WebhookLog extends AppBaseEntity {
|
|
@Column()
|
|
sourceDelivery: string;
|
|
@Column({ type: 'enum', enum: SourceService })
|
|
sourceService: SourceService;
|
|
@Column()
|
|
sourceEvent: string;
|
|
@Column({ type: 'jsonb' })
|
|
payload: any;
|
|
@Column()
|
|
localEvent: string;
|
|
@Column({ type: 'jsonb' })
|
|
localPayload: any;
|
|
}
|