fix emoji caching
This commit is contained in:
parent
df5aff9d91
commit
bb0925224d
14 changed files with 552 additions and 288 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue