fix emoji caching

This commit is contained in:
Hazelnoot 2025-10-01 12:05:43 -04:00
parent df5aff9d91
commit bb0925224d
14 changed files with 552 additions and 288 deletions

View file

@ -92,10 +92,11 @@ export class ImportCustomEmojisProcessorService {
continue;
}
const emojiPath = outputPath + '/' + record.fileName;
await this.emojisRepository.delete({
name: nameNfc,
host: IsNull(),
});
const existing = await this.customEmojiService.emojisByIdCache.fetchMaybe(nameNfc);
if (existing) {
await this.customEmojiService.delete(existing.id, job.data.user);
}
try {
const driveFile = await this.driveService.addFile({