FIX: Add id to warn (#25597)

This commit is contained in:
Daniel Waterworth 2024-02-07 17:20:08 -06:00 committed by GitHub
parent 3da302716c
commit 8058fd5b80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -487,7 +487,10 @@ Category.reopenClass({
const result = await categoryMultiCache.fetch(ids);
if (categoryMultiCache.hadTooManyCalls()) {
warn(
"Multiple calls to Category.asyncFindByIds within a second. Could they be combined?"
"Multiple calls to Category.asyncFindByIds within a second. Could they be combined?",
{
id: "discourse.category.multiple-async-find-by-ids-calls",
}
);
}