NP, leave it as it's now if only it works.


2014-05-28 17:03 GMT+02:00 Mateusz <notifications@github.com>:

> In app/models/dao/CopyrightTransferInternalDao.scala:
>
> > @@ -61,7 +62,7 @@ object CopyrightTransferInternalDao {
> >      Database.forDataSource(DB.getDataSource("internal")).withSession {
> >        implicit session =>
> >          slick.internal.Tables.Copyrighttransfer
> > -          .filter(_.ojsarticleid === ojsArticleId).length.run > 0
> > +          .filter(_.ojsarticleid === ojsArticleId).exists.run
>
> Accoriding to documentation exists:
> Test whether this query is non-empty.
> with is the same as length > 0. It cosmetic change, if you want i can
> remove it.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/tilius/io-article-manager/pull/31/files#r13135597>
> .
>