🐛 Fix on import wrong package

This commit is contained in:
LittleSheep 2024-05-05 00:29:37 +08:00
parent f78a1447d5
commit 69716216eb

View File

@ -3,7 +3,6 @@ package services
import ( import (
"errors" "errors"
"fmt" "fmt"
"git.solsynth.dev/hydrogen/passport/pkg/services"
"time" "time"
"git.solsynth.dev/hydrogen/interactive/pkg/database" "git.solsynth.dev/hydrogen/interactive/pkg/database"
@ -297,7 +296,7 @@ func NewPost[T models.PostInterface](item T) (T, error) {
} }
if item.GetRealm() != nil { if item.GetRealm() != nil {
_, err := services.GetRealmMember(item.GetRealm().ID, item.GetAuthor().ID) _, err := GetRealmMember(item.GetRealm().ID, item.GetAuthor().ExternalID)
if err != nil { if err != nil {
return item, fmt.Errorf("you aren't a part of that realm: %v", err) return item, fmt.Errorf("you aren't a part of that realm: %v", err)
} }