function setListingGroupsTx
setListingGroupsTx(
tx: TxScope,
listingId: number,
groupIds: number[],
): Promise<void>

Replace a listing's group memberships inside an existing write transaction, so the change commits atomically with the listing row write (the admin API create/update path). Mirrors setListingGroups but reads the current set and runs each statement on the caller's tx.

Parameters

listingId: number
groupIds: number[]

Return Type

Promise<void>

Usage

import { setListingGroupsTx } from "doc.ts";