Use new hanami db classes

This commit is contained in:
2024-08-05 18:44:20 +10:00
parent d7573d7038
commit 2ada50cbcd
52 changed files with 52 additions and 52 deletions

View File

@@ -1,6 +1,6 @@
module Micropub
module Repos
class AutoTaggingRepo < Adamantium::Repo[:auto_taggings]
class AutoTaggingRepo < Adamantium::DB::Repo[:auto_taggings]
def find(id)
auto_taggings
.where(id: id)

View File

@@ -1,6 +1,6 @@
module Micropub
module Repos
class MovieRepo < Adamantium::Repo[:movies]
class MovieRepo < Adamantium::DB::Repo[:movies]
commands :create
end
end

View File

@@ -1,6 +1,6 @@
module Micropub
module Repos
class PodcastRepo < Adamantium::Repo[:podcasts]
class PodcastRepo < Adamantium::DB::Repo[:podcasts]
commands :create
def listing

View File

@@ -1,6 +1,6 @@
module Micropub
module Repos
class PostRepo < Adamantium::Repo[:posts]
class PostRepo < Adamantium::DB::Repo[:posts]
commands update: :by_pk
def remove_tag(post_id:, tag:)

View File

@@ -1,6 +1,6 @@
module Micropub
module Repos
class WebmentionsRepo < Adamantium::Repo[:webmentions]
class WebmentionsRepo < Adamantium::DB::Repo[:webmentions]
commands :create
end
end

View File

@@ -1,6 +1,6 @@
module Micropub
module Repos
class WorkoutRepo < Adamantium::Repo[:workouts]
class WorkoutRepo < Adamantium::DB::Repo[:workouts]
commands :create, update: :by_pk
end
end