Commit e68fb4a7 authored by Julien Schröter's avatar Julien Schröter

Make friend id of friend table more explicit

parent 444c59fb
Pipeline #1749 passed with stages
in 19 minutes and 19 seconds
......@@ -9,7 +9,7 @@ import (
"gitlab.akamu.de/akamu/game-server-go/schemas"
)
var selectQuery = "SELECT iduser, username, idavatar, avatar.image, avatar.level, title.idtitle, title.name, subject.idsubject, subject.name, subject.shortform, subject.department, subject.description, title.unlock_score, title.unlock_win FROM user LEFT JOIN friend ON (iduser=friend) LEFT JOIN title ON (title.idtitle=selected_title) LEFT JOIN subject ON (idsubject=title.subject) LEFT JOIN avatar ON (idavatar=selected_avatar) WHERE friend.user=?"
var selectQuery = "SELECT iduser, username, idavatar, avatar.image, avatar.level, title.idtitle, title.name, subject.idsubject, subject.name, subject.shortform, subject.department, subject.description, title.unlock_score, title.unlock_win FROM friend LEFT JOIN user ON (iduser=friend.friend) LEFT JOIN title ON (title.idtitle=selected_title) LEFT JOIN subject ON (idsubject=title.subject) LEFT JOIN avatar ON (idavatar=selected_avatar) WHERE friend.user=?"
var ErrUserNotExist = errors.New("specified user does not exist")
var ErrUserFriendHimself = errors.New("users cannot friend themselves")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment