Skip to content

Commit

Permalink
#53 Make report template removable
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Dec 16, 2016
1 parent 9ed8320 commit ebb0c7b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ class ReportTemplateSrv @Inject() (
updateSrv[ReportTemplateModel, ReportTemplate](reportTemplateModel, ids, fields)
}

def delete(id: String)(implicit Context: AuthContext): Future[ReportTemplate] =
deleteSrv[ReportTemplateModel, ReportTemplate](reportTemplateModel, id)
def delete(id: String)(implicit Context: AuthContext): Future[Unit] =
deleteSrv.realDelete[ReportTemplateModel, ReportTemplate](reportTemplateModel, id)

def find(queryDef: QueryDef, range: Option[String], sortBy: Seq[String]): (Source[ReportTemplate, NotUsed], Future[Long]) = {
findSrv[ReportTemplateModel, ReportTemplate](reportTemplateModel, queryDef, range, sortBy)
Expand Down

0 comments on commit ebb0c7b

Please sign in to comment.