(store: Store, queues: ArrayOrCollection<bigint, DbQueue>, update: Partial<DbQueue>)
| 22 | } |
| 23 | |
| 24 | export async function updateQueues(store: Store, queues: ArrayOrCollection<bigint, DbQueue>, update: Partial<DbQueue>) { |
| 25 | return await db.transaction(async () => { |
| 26 | const updatedQueues = map(queues, queue => store.updateQueue({ id: queue.id, ...update })); |
| 27 | const updatedQueueIds = updatedQueues.map(queue => queue.id); |
| 28 | |
| 29 | DisplayUtils.requestDisplaysUpdate(store, updatedQueueIds); |
| 30 | |
| 31 | if (update.roleInQueueId) { |
| 32 | await MemberUtils.assignInQueueRoleToMembers(store, updatedQueues, update.roleInQueueId, "add"); |
| 33 | } |
| 34 | |
| 35 | return { updatedQueues }; |
| 36 | }); |
| 37 | } |
| 38 | } |
nothing calls this directly
no test coverage detected