Skip to content

Admin console

Benjamin Piouffle edited this page Jul 17, 2019 · 2 revisions

This page references commands to enter in the API console (Elixir) that can be useful for admins.

Set language for video

new_language = "ar"
youtube_id = "dejeVuL9-7c"
video = DB.Repo.get_by(DB.Schema.Video, youtube_id: youtube_id)
DB.Repo.update(Ecto.Changeset.change(video, language: new_language)