Skip to Content
SdkReactInternalFunctionsgetMediaBySourceUrlOp

getMediaBySourceUrlOp

getMediaBySourceUrlOp(ctx: MediaOperationsContext, sourceUrl: string, walletAddress: string): Promise<StoredMedia | null>

Defined in: src/lib/db/media/operations.ts:220 

Get a media record by its source URL. Note: When encryption is enabled, sourceUrl is encrypted and this query will only match if the stored value is plaintext (legacy data). For encrypted data, use getMediaByIdOp instead.

Parameters

ParameterType

ctx

MediaOperationsContext

sourceUrl

string

walletAddress

string

Returns

Promise<StoredMedia | null>

Last updated on