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
| Parameter | Type | Description |
|---|---|---|
|
|
Database context | |
|
|
|
Array of mediaIds to update |
|
|
|
The messageId to set on all records |
Returns
Promise<number>
Number of records updated
Last updated on