fix(export): turbo poll when creating an export

This commit is contained in:
Colin Darie 2024-03-14 13:11:53 +01:00
parent f54caddcfe
commit 8fa6e04c53
No known key found for this signature in database
GPG key ID: 8C76CADD40253590
3 changed files with 6 additions and 3 deletions

View file

@ -394,7 +394,7 @@ module Instructeurs
end
def last_export_for(statut)
Export.where(instructeur_id: current_instructeur.id, statut: statut, updated_at: 1.hour.ago..).last
Export.where(user_profile: current_instructeur, statut: statut, updated_at: 1.hour.ago..).last
end
def cookies_export_key