Account for stories that are sometimes not found in the database
This commit is contained in:
parent
0d9d561b99
commit
c1f4bac802
2 changed files with 23 additions and 13 deletions
|
@ -47,7 +47,7 @@ export class MessageCache {
|
|||
const messageAttributes = this.accessAttributes(messageId);
|
||||
strictAssert(
|
||||
messageAttributes,
|
||||
`MessageCache.accessAttributesOrThrow/${source}: no message`
|
||||
`MessageCache.accessAttributesOrThrow/${source}: no message for id ${messageId}`
|
||||
);
|
||||
return messageAttributes;
|
||||
}
|
||||
|
@ -131,7 +131,7 @@ export class MessageCache {
|
|||
|
||||
strictAssert(
|
||||
messageAttributesFromDatabase,
|
||||
`MessageCache.resolveAttributes/${source}: no message`
|
||||
`MessageCache.resolveAttributes/${source}: no message for id ${messageId}`
|
||||
);
|
||||
|
||||
return this.freezeAttributes(messageAttributesFromDatabase);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue