Skip to content

Commit d8d3810

Browse files
committed
error handling
1 parent 6acf8fc commit d8d3810

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data/pizzaStore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const Pizza = pgClient.define('pizza', {
4040
Pizza.initialize = async () => {
4141
return Pizza.sync({ force: true }).then(() => {
4242
console.log('postgres connection ready')
43-
})
43+
}).catch(err => console.error(err))
4444
}
4545

4646
module.exports = Pizza

0 commit comments

Comments
 (0)