Doh! Changed update to Execute

This commit is contained in:
Shannon
2017-02-15 21:24:45 +11:00
parent 0c613347ae
commit 975c97cfb0

View File

@@ -786,7 +786,7 @@ order by umbracoNode.{2}, umbracoNode.parentID, umbracoNode.sortOrder",
public void ClearPublished(IContent content)
{
var sql = "UPDATE cmsDocument SET published=0 WHERE nodeId=@id AND published=1";
Database.Update(sql, new {id = content.Id});
Database.Execute(sql, new {id = content.Id});
}
/// <summary>