fix for gif and emojies categories
This commit is contained in:
parent
cf23b184d2
commit
5e18bd3830
6 changed files with 179 additions and 14 deletions
|
|
@ -111,6 +111,15 @@ func (s *Service) SeedMedia(ctx context.Context, root string, maxRegularSets int
|
|||
}
|
||||
s.logSeedPhase("effects", phaseStarted, phaseBefore, stats)
|
||||
|
||||
phaseStarted = time.Now()
|
||||
phaseBefore = stats
|
||||
// messages.getEmojiGroups 分类图标的影子自定义 emoji 文档,依赖上面 sticker sets 阶段
|
||||
// 已 seed 的源文档,故放在其后。
|
||||
if err := s.seedEmojiGroupIcons(ctx, &stats); err != nil {
|
||||
return stats, fmt.Errorf("seed emoji group icons: %w", err)
|
||||
}
|
||||
s.logSeedPhase("emoji_group_icons", phaseStarted, phaseBefore, stats)
|
||||
|
||||
if stats.Reactions == 0 && stats.StickerSets == 0 && stats.Effects == 0 {
|
||||
stats.Skipped = true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue