andymeneely / dev-fortress-server

MIT License
4 stars 0 forks source link

.count() returns a string when using Postgres; int when using Sqlite #59

Closed ShaydeNofziger closed 7 years ago

ShaydeNofziger commented 7 years ago

There are functions in controllers which are used to validate whether or not an entity with a given property exists. A strict equality comparison is done to determine whether to return true or false. As Postgres always returns a string representation of the integer, we have to determine this another way.