({ classroomID, updates }, options)
| 139 | |
| 140 | // updates = { archived: '', name: ''} |
| 141 | update ({ classroomID, updates }, options) { |
| 142 | if (options == null) { options = {} } |
| 143 | return fetchJson(`/db/classroom/${classroomID}`, _.assign({}, options, { |
| 144 | method: 'PUT', |
| 145 | json: updates |
| 146 | })) |
| 147 | }, |
| 148 | |
| 149 | addPermission ({ classroomID, permission }) { |
| 150 | return fetchJson(`/db/classroom/${classroomID}/permission`, _.assign({}, { |
nothing calls this directly
no outgoing calls
no test coverage detected