diff --git a/service/api/put-updateusername.go b/service/api/put-updateusername.go index d5d23d2..888c404 100644 --- a/service/api/put-updateusername.go +++ b/service/api/put-updateusername.go @@ -30,7 +30,7 @@ func (rt *_router) UpdateUsername(w http.ResponseWriter, r *http.Request, ps htt return } - if !stat { //todo: sta regex non me piace + if !stat { // todo: sta regex non me piace helpers.SendBadRequest(w, "Username must be between 3 and 16 characters long and can only contain letters, numbers and underscores", rt.baseLogger) return } diff --git a/service/database/db-profile.go b/service/database/db-profile.go index bf63fe6..2ee5751 100644 --- a/service/database/db-profile.go +++ b/service/database/db-profile.go @@ -5,8 +5,6 @@ import ( "github.com/notherealmarco/WASAPhoto/service/structures" ) -//this should be changed, but we need to change OpenAPI first - // Get user profile, including username, followers, following, and photos func (db *appdbimpl) GetUserProfile(uid string, requesting_uid string) (QueryResult, *structures.UserProfile, error) { // Get user info