(ownerID, options)
| 19 | } |
| 20 | |
| 21 | fetchByOwner (ownerID, options) { |
| 22 | if (options == null) { options = {} } |
| 23 | ownerID = ownerID.id || ownerID // handle if they pass in a user |
| 24 | if (options.data == null) { options.data = {} } |
| 25 | options.data.ownerID = ownerID |
| 26 | return this.fetch(options) |
| 27 | } |
| 28 | |
| 29 | fetchForClassroom (classroomID, options) { |
| 30 | if (options == null) { options = {} } |