delete post hook not being fired when deling in wordpress dashboard admin

I’ve actually found it. “Just” a typo…

add_action( 'delete_post', array( $this, 'bookings_sync', 10 ) );

should be

add_action( 'delete_post', array( $this, 'bookings_sync'), 10 );

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)