[Backport] Fix #3451, change notify_policy to notifi_level

stable
David Barragán Merino 2015-11-04 16:55:20 +01:00
parent 7518bcac6c
commit 8a33f62f31
1 changed files with 2 additions and 2 deletions

View File

@ -78,9 +78,9 @@ Resource = (urlsService, http, paginateResponseService) ->
url = urlsService.resolve("project-unlike", projectId)
return http.post(url)
service.watchProject = (projectId, notifyPolicy) ->
service.watchProject = (projectId, notifyLevel) ->
data = {
notify_policy: notifyPolicy
notify_level: notifyLevel
}
url = urlsService.resolve("project-watch", projectId)
return http.post(url, data)