Skip to content
Extraits de code Groupes Projets
Valider 30f98aec rédigé par Raphael's avatar Raphael
Parcourir les fichiers

Set notification target type after importing

parent f1e8b5c0
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -428,6 +428,12 @@ module DataConversion
SET #{boolean_set("unread")};
SQL
log "Finished. Imported #{Mongo::Notification.count} notifications."
{"new_request" => "Request",
"request_accepted" => "Contact",
"comment_on_post" => "Comment",
"also_commented" => "Comment"}.each_pair do |key, value|
Mongo::Notification.where(:action => key).update_all(:target_type => value)
end
end
def import_raw_people
log "Loading people file..."
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter