cleanup(ApNoteService.ts
): any
に対するnon-null assertion
This commit is contained in:
parent
7a825752f5
commit
3bd784eac2
|
@ -343,15 +343,15 @@ export class ApNoteService {
|
||||||
if ((exists.updatedAt == null)
|
if ((exists.updatedAt == null)
|
||||||
|| (tag.id != null && exists.uri == null)
|
|| (tag.id != null && exists.uri == null)
|
||||||
|| (new Date(tag.updated) > exists.updatedAt)
|
|| (new Date(tag.updated) > exists.updatedAt)
|
||||||
|| (tag.icon!.url !== exists.originalUrl)
|
|| (tag.icon.url !== exists.originalUrl)
|
||||||
) {
|
) {
|
||||||
await this.emojisRepository.update({
|
await this.emojisRepository.update({
|
||||||
host,
|
host,
|
||||||
name,
|
name,
|
||||||
}, {
|
}, {
|
||||||
uri: tag.id,
|
uri: tag.id,
|
||||||
originalUrl: tag.icon!.url,
|
originalUrl: tag.icon.url,
|
||||||
publicUrl: tag.icon!.url,
|
publicUrl: tag.icon.url,
|
||||||
updatedAt: new Date(),
|
updatedAt: new Date(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -370,8 +370,8 @@ export class ApNoteService {
|
||||||
host,
|
host,
|
||||||
name,
|
name,
|
||||||
uri: tag.id,
|
uri: tag.id,
|
||||||
originalUrl: tag.icon!.url,
|
originalUrl: tag.icon.url,
|
||||||
publicUrl: tag.icon!.url,
|
publicUrl: tag.icon.url,
|
||||||
updatedAt: new Date(),
|
updatedAt: new Date(),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
}).then(x => this.emojisRepository.findOneByOrFail(x.identifiers[0]));
|
}).then(x => this.emojisRepository.findOneByOrFail(x.identifiers[0]));
|
||||||
|
|
Loading…
Reference in a new issue