Skip to content

Commit

Permalink
Add project id for api notification (QuantConnect#7144)
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin-Molinero authored Mar 27, 2023
1 parent 73c26ee commit 03bc23e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Api/Api.cs
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,9 @@ public Compile ReadCompile(int projectId, string compileId)
/// Sends a notification
/// </summary>
/// <param name="notification">The notification to send</param>
/// <param name="projectId">The project id</param>
/// <returns><see cref="RestResponse"/> containing success response and errors</returns>
public virtual RestResponse SendNotification(Notification notification)
public virtual RestResponse SendNotification(Notification notification, int projectId)
{
throw new NotImplementedException($"{nameof(Api)} does not support sending notifications");
}
Expand Down
3 changes: 2 additions & 1 deletion Common/Interfaces/IApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,9 @@ public BaseOptimization CreateOptimization(
/// Sends a notification
/// </summary>
/// <param name="notification">The notification to send</param>
/// <param name="projectId">The project id</param>
/// <returns><see cref="RestResponse"/> containing success response and errors</returns>
RestResponse SendNotification(Notification notification);
RestResponse SendNotification(Notification notification, int projectId);

/// <summary>
/// Get the algorithm current status, active or cancelled from the user
Expand Down

0 comments on commit 03bc23e

Please sign in to comment.