mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
refactored quiz creation
This commit is contained in:
@@ -120,7 +120,7 @@ public class CanvasService
|
||||
{
|
||||
module_item = new
|
||||
{
|
||||
title = title,
|
||||
title,
|
||||
type = type.ToString(),
|
||||
content_id = contentId,
|
||||
}
|
||||
@@ -128,7 +128,7 @@ public class CanvasService
|
||||
var request = new RestRequest(url);
|
||||
request.AddBody(body);
|
||||
|
||||
var (newItem, response) = await webRequestor.PostAsync<CanvasModuleItem>(request);
|
||||
var (newItem, _response) = await webRequestor.PostAsync<CanvasModuleItem>(request);
|
||||
if (newItem == null)
|
||||
throw new Exception("something went wrong updating module item");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user