mirror of
https://github.com/yanislav-igonin/micrach
synced 2024-12-22 14:22:33 +03:00
fix: disable files in seeds
This commit is contained in:
parent
4398698ee0
commit
37d3be774b
@ -52,10 +52,12 @@ func getPost(id int, pid *int) Post {
|
||||
Title: randSeq(rand.Intn(100)),
|
||||
Text: randSeq(rand.Intn(100)),
|
||||
IsSage: false,
|
||||
Files: []File{
|
||||
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"),
|
||||
},
|
||||
// Maybe somewhen else I'll add url field for files
|
||||
// Files: []File{
|
||||
// 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(),
|
||||
UpdatedAt: time.Now(),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user