siggame / coliselia

Common components & services between ophelia and colisee; note: repo name subject to change
3 stars 1 forks source link

Fix team and user dbapi routers #15

Closed user404d closed 7 years ago

user404d commented 7 years ago

Team and user routers are currently breaking the dbapi build.

user404d commented 7 years ago

http://knexjs.org/#Promises-then

russleyshaw commented 7 years ago

If this the asCallback methods, then I think we can ignore this. The code is transpiled regardless. This is a bug with knex typescript files.

Promises are annoying when you want to easily forward Sql data through to the response object.

user404d commented 7 years ago

See these changes

Effectively the same, but typescript doesn't complain.