1
Fork 0
mirror of https://github.com/diced/zipline.git synced 2025-04-11 23:31:17 -05:00

add clicks statistic to shortens

This commit is contained in:
dicedtomatoreal 2020-08-11 11:38:19 -07:00
parent b84907e281
commit e29acadd41

View file

@ -20,12 +20,16 @@ export class Shorten {
@Column("bigint", { default: 0 })
views: number
@Column("bigint", { default: 0 })
clicks: number;
set(options: { key: string, origin: string, url: string, user: number }) {
this.key = options.key;
this.origin = options.origin;
this.url = options.url;
this.user = options.user;
this.views = 0;
this.clicks = 0;
return this;
}
}