Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/modules/creator/creator-profile.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ import {
} from './creator-profile.schemas';
import { CREATOR_DETAIL_DEFAULT_SELECT } from '../../constants/creator-detail-include.constants';

function buildCreatorDetailCacheMissContext(creatorId: string) {
return {
event: 'creator_detail_cache_miss',
creatorId,
lookupKeys: ['id', 'handle'],
source: 'creator-profile-service',
};
}

/**
* Reads a creator profile from the database.
*
Expand All @@ -21,6 +30,8 @@ export async function getCreatorProfile(
});

if (!profile) {
console.warn(buildCreatorDetailCacheMissContext(creatorId));

// Fallback for placeholder behavior if profile not found
return {
creatorId,
Expand Down
Loading