1
0

chore: rename js files to ts

This commit is contained in:
Dominik Pschenitschni
2022-04-11 22:37:56 +02:00
committed by Gitea
parent 7fe9f17e43
commit 321850ec20
36 changed files with 0 additions and 0 deletions

View File

@ -0,0 +1,22 @@
import {Factory} from '../support/factory'
import {formatISO} from "date-fns"
import {faker} from '@faker-js/faker'
export class LinkShareFactory extends Factory {
static table = 'link_shares'
static factory() {
const now = new Date()
return {
id: '{increment}',
hash: faker.random.word(32),
list_id: 1,
right: 0,
sharing_type: 0,
shared_by_id: 1,
created: formatISO(now),
updated: formatISO(now)
}
}
}