From 37d3be774bfd27e12450f872dc2a33342b1c5692 Mon Sep 17 00:00:00 2001 From: Yanislav Igonin Date: Sat, 16 Oct 2021 14:17:15 +0300 Subject: [PATCH] fix: disable files in seeds --- repositories/seeds.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/repositories/seeds.go b/repositories/seeds.go index 60ae51b..bc9bed8 100644 --- a/repositories/seeds.go +++ b/repositories/seeds.go @@ -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(), }