Open dangerdak opened 7 years ago
when we test that we can insert into the database, our 'select' query must be inside the callback passed into the 'insert' query (or the selection may finish before the insertion)
https://github.com/polyccon/Crumbs/blob/master/test/database.test.js#L58
OR use returning: https://www.postgresql.org/docs/9.5/static/dml-returning.html
when we test that we can insert into the database, our 'select' query must be inside the callback passed into the 'insert' query (or the selection may finish before the insertion)
https://github.com/polyccon/Crumbs/blob/master/test/database.test.js#L58
OR use returning: https://www.postgresql.org/docs/9.5/static/dml-returning.html