Commit Graph

17 Commits

Author SHA1 Message Date
9516140c0f use make to initialize slices in the repositories 2021-05-06 17:01:22 +02:00
7f59bcf2cd limit the number of orders someone can add to a query (3) 2021-05-05 20:15:51 +02:00
6a44193f31 slices - use nil declaration 2021-05-05 19:58:45 +02:00
49b407ed23 use errors.New where it is possible instead of fmt.Errorf 2021-05-05 19:49:00 +02:00
0a271d1255 bump github.com/tribalwarshelp/shared and github.com/tribalwarshelp/map-generator 2021-05-05 19:32:45 +02:00
1a63e5fa91 add the 'Select' option to the FetchConfigs 2021-03-21 13:03:39 +01:00
d85e11ca9a decrease version.FetchLimit from 100 to 30, update a formula that calculate query complexity 2021-03-21 08:05:02 +01:00
1f3450cfca rename PaginationLimit -> FetchLimit 2021-03-21 07:42:12 +01:00
95dbbc4d8a rename utils.SanitizeSortExpressions -> utils.SanitizeSorts, add query complexity limit 2021-03-20 18:13:45 +01:00
2e92d09a2e update api error messages 2021-01-13 20:46:24 +01:00
309fe80868 update two error messages in server/version pg repositories 2021-01-13 20:28:24 +01:00
3a7f608e14 bump github.com/tribalwarshelp/shared, github.com/tribalwarshelp/map-generator and go-pg 2021-01-06 17:43:02 +01:00
f6009dacb2 remove deprecated LangVersion 2020-12-25 12:42:46 +01:00
fb84bdbc55 [WIP] - refactor limit, sort, offset
- update the Version/Village repository and usecase
2020-11-21 12:34:25 +01:00
01fdd80f7f [WIP] - refactor limit, sort, offset
- rename middleware.MayExceedLimit to CanExceedLimit
- update the DailyTribeStats/DailyPlayerStats repository and usecase
- rename utils.SanitizeSort to utils.SanitizeSortExpression
- add two new utils - SanitizeSortExpressions and FindStringWithPrefix
2020-11-21 09:13:25 +01:00
c32e988e71 bump github.com/tribalwarshelp/shared 2020-11-07 08:40:53 +01:00
00f824e706 bump github.com/tribalwarshelp/shared 2020-11-06 20:23:12 +01:00