Skip to Content
SdkReactInternalFunctionsupdateMediaMessageIdBatchOp

updateMediaMessageIdBatchOp

updateMediaMessageIdBatchOp(ctx: MediaOperationsContext, mediaIds: string[], messageId: string): Promise<number>

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

Batch update media records with a messageId. Used to associate media records with their message after message creation.

Parameters

ParameterTypeDescription

ctx

MediaOperationsContext

Database context

mediaIds

string[]

Array of mediaIds to update

messageId

string

The messageId to set on all records

Returns

Promise<number>

Number of records updated

Last updated on