You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Soft deleted rows are being returned in findAll using paranoid mode #8006
Soft deletion of row sets deletedAt column with utils.now() (look here). That means that the value would be machine's current timestamp. But when you'll try to retrieve data, the query for ignoring soft deleted rows would be using CURRENT_TIMESTAMP (look here) which is the DB's machine timestamp. If these two machines (Server and DB) clocks are not synced you'll end up with soft deleted rows included in your results.
constres=model.findAll(...)
What do you expect to happen?
Shouldn't get soft deleted rows at all. The value that should be set upon deletion is CURRENT_TIMESTAMP as well.
Activity
fix(model): use DB time for deleted-at time (sequelize#8006)