raise flag limit from 100 to 500

This commit is contained in:
Sam 2023-06-02 16:48:32 +02:00
parent e98d86bd2e
commit 7c94c088e0
No known key found for this signature in database
GPG Key ID: B4EF20DDE721CAA1
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ type MemberFlag struct {
}
const (
MaxPrideFlags = 100
MaxPrideFlags = 500
MaxPrideFlagTitleLength = 100
MaxPrideFlagDescLength = 500
)
@ -59,7 +59,7 @@ const (
)
func (db *DB) AccountFlags(ctx context.Context, userID xid.ID) (fs []PrideFlag, err error) {
sql, args, err := sq.Select("*").From("pride_flags").Where("user_id = ?", userID).OrderBy("lower(name)").ToSql()
sql, args, err := sq.Select("*").From("pride_flags").Where("user_id = ?", userID).OrderBy("lower(name)", "id").ToSql()
if err != nil {
return nil, errors.Wrap(err, "building query")
}