Sorting aggregates by slug or lowercased name to avoid capitalization issues. Fixed slug getting interpreted as ID by cache lookup.
This commit is contained in:
@@ -6,9 +6,11 @@ export async function getIdsBySlug(slugs, domain) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/* this, naturally, fails if the slug is 69 etc.
|
||||
if (Number(slug)) {
|
||||
return Number(slug); // already an ID or missing
|
||||
}
|
||||
*/
|
||||
|
||||
const id = await redis.hGet(`traxxx:${domain}:id_by_slug`, slug);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user