Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preload가 포함된 API 호출시 에러 발생 #40

Open
powergee opened this issue Jan 8, 2021 · 1 comment
Open

Preload가 포함된 API 호출시 에러 발생 #40

powergee opened this issue Jan 8, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@powergee
Copy link
Contributor

powergee commented Jan 8, 2021

Preload가 포함된 API (ex. GET /v1/list-api/lists)를 호출할 시 Preload를 할 수 없다는 에러가 발생합니다. 예시 출력은 아래와 같습니다.

스크린샷, 2021-01-09 03-39-04

@powergee powergee added the bug Something isn't working label Jan 8, 2021
@ZeroFive0505
Copy link
Contributor

func GetAllLists(list *[]List) (err error) { if err = Config.DB.Preload("Project").Preload("Tasks").Find(list).Error; err != nil { return err } return nil }

-> func GetAllLists(list *[]List) (err error) { if err = Config.DB.Preload("Tasks").Find(list).Error; err != nil { return err } return nil }

리스트안에 프로젝트는 없는데 제가 실수로 포함해서 뜨는 오류같습니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants