fix: disable files in seeds

This commit is contained in:
Yanislav Igonin 2021-10-16 14:17:15 +03:00
parent 4398698ee0
commit 37d3be774b

View File

@ -52,10 +52,12 @@ func getPost(id int, pid *int) Post {
Title: randSeq(rand.Intn(100)), Title: randSeq(rand.Intn(100)),
Text: randSeq(rand.Intn(100)), Text: randSeq(rand.Intn(100)),
IsSage: false, IsSage: false,
Files: []File{ // Maybe somewhen else I'll add url field for files
getFile(2, id, "https://memepedia.ru/wp-content/uploads/2018/03/ebanyy-rot-etogo-kazino.png"), // Files: []File{
getFile(1, id, "https://memepedia.ru/wp-content/uploads/2018/03/ebanyy-rot-etogo-kazino.png"), // getFile(2, id, "https://memepedia.ru/wp-content/uploads/2018/03/ebanyy-rot-etogo-kazino.png"),
}, // getFile(1, id, "https://memepedia.ru/wp-content/uploads/2018/03/ebanyy-rot-etogo-kazino.png"),
// },
Files: []File{},
CreatedAt: time.Now(), CreatedAt: time.Now(),
UpdatedAt: time.Now(), UpdatedAt: time.Now(),
} }