Migrate schema to service ids

This commit is contained in:
Fedor Indutny 2023-08-16 22:54:39 +02:00 committed by Jamie Kyle
parent 71958f8a01
commit 8b0da36caa
258 changed files with 4795 additions and 2613 deletions

View file

@ -136,7 +136,7 @@ export async function routineProfileRefresh({
totalCount += 1;
try {
await getProfileFn(conversation.get('uuid'), conversation.get('e164'));
await getProfileFn(conversation.getServiceId(), conversation.get('e164'));
log.info(
`${logId}: refreshed profile for ${conversation.idForLogging()}`
);
@ -203,7 +203,7 @@ function* getFilteredConversations(
c =>
isDirectConversation(c.attributes) &&
!c.isUnregisteredAndStale() &&
c.get('uuid')
c.getServiceId()
);
const sorted = sortBy(filtered, c => c.get('profileLastFetchedAt') || 0);