(groups)
| 791 | } |
| 792 | |
| 793 | async function saveAllGroups(groups) { |
| 794 | const res = await fetch('/api/pro/groups/save.php', { |
| 795 | method: 'POST', |
| 796 | credentials: 'include', |
| 797 | headers: { |
| 798 | 'Content-Type': 'application/json', |
| 799 | 'X-CSRF-Token': window.csrfToken || '' |
| 800 | }, |
| 801 | body: JSON.stringify({ groups }) |
| 802 | }); |
| 803 | return await safeJson(res); |
| 804 | } |
| 805 | |
| 806 | let __groupsCache = {}; |
| 807 |
no test coverage detected