()
| 144 | } |
| 145 | |
| 146 | static async fetchSuperUser() { |
| 147 | try { |
| 148 | return await request(`${host}/api/accounts/initialize-superuser/`, { |
| 149 | auth: false, |
| 150 | method: 'GET', |
| 151 | }); |
| 152 | } catch (error) { |
| 153 | console.error('Error checking superuser status:', error); |
| 154 | throw error; |
| 155 | } |
| 156 | } |
| 157 | |
| 158 | static async createSuperUser({ username, email, password }) { |
| 159 | try { |
no test coverage detected