From 69716216ebe12ed2f54ce66107e7fdd615c41425 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 5 May 2024 00:29:37 +0800 Subject: [PATCH] :bug: Fix on import wrong package --- pkg/services/posts.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/services/posts.go b/pkg/services/posts.go index d826afa..257899f 100644 --- a/pkg/services/posts.go +++ b/pkg/services/posts.go @@ -3,7 +3,6 @@ package services import ( "errors" "fmt" - "git.solsynth.dev/hydrogen/passport/pkg/services" "time" "git.solsynth.dev/hydrogen/interactive/pkg/database" @@ -297,7 +296,7 @@ func NewPost[T models.PostInterface](item T) (T, error) { } if item.GetRealm() != nil { - _, err := services.GetRealmMember(item.GetRealm().ID, item.GetAuthor().ID) + _, err := GetRealmMember(item.GetRealm().ID, item.GetAuthor().ExternalID) if err != nil { return item, fmt.Errorf("you aren't a part of that realm: %v", err) }