mirror of
				https://github.com/yanislav-igonin/micrach
				synced 2025-10-31 02:07:02 +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)), | 		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(), | ||||||
| 	} | 	} | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Yanislav Igonin
						Yanislav Igonin