Commit graph

1509 commits

Author SHA1 Message Date
P. Reis
75ad25ccac test(zap-split): update to be in accord with new data structure 2024-07-23 20:39:51 -03:00
P. Reis
2ebaee8807 refactor: change DittoZapSplits data structure to use object fields instead of array 2024-07-23 20:39:23 -03:00
P. Reis
7cdfb67b99 refactor: rename officialDittoAccountPubkey to dittoPubkey & officialDittoAccountMsg to dittoMsg 2024-07-23 20:25:02 -03:00
P. Reis
a0c952b9b9 refactor: do not use isObjectEmpty function in if condition, zap tag 2024-07-23 20:15:44 -03:00
P. Reis
de32930c44 refactor: use exclamation mark (bang) instead of 'as string' cast 2024-07-23 18:26:06 -03:00
P. Reis
80e14c65c0 refactor: rename zap_split.ts to zap-split.ts, rename tests as well 2024-07-23 18:14:22 -03:00
P. Reis
5a5e8b7c5d feat(createStatusController): add 'zap' tag to event 2024-07-21 20:11:26 -03:00
P. Reis
449a3497ba feat: create deleteZapSplitsController 2024-07-21 19:40:55 -03:00
P. Reis
2e66af26db feat: create updateZapSplitsController 2024-07-21 19:26:05 -03:00
P. Reis
2fe9b9f98d feat: get zap splits and return it in api/v1/instance endpoint 2024-07-21 19:22:53 -03:00
P. Reis
1f9896bdbf test: getZapSplits function return empty object 2024-07-19 19:30:31 -03:00
P. Reis
09eb444c9b test: update so getZapSplits function returns undefined 2024-07-19 19:19:35 -03:00
P. Reis
beee0e76e7 refactor: allow to return undefined in getZapSplits function 2024-07-19 19:19:04 -03:00
P. Reis
3bc3e7675d test: getZapSplits function 2024-07-19 17:36:12 -03:00
P. Reis
76a591ab6d feat: create getZapSplits function 2024-07-19 17:20:31 -03:00
P. Reis
0c9e3e2b47 test(utils.ts): isObjectEmpty function 2024-07-19 16:27:10 -03:00
P. Reis
c17db58448 feat(utils.ts): create isObjectEmpty function 2024-07-19 16:26:50 -03:00
P. Reis
cc6441d239 refactor(utils.ts): remove unused imports 2024-07-19 15:22:35 -03:00
P. Reis
c2225da8dd test(utls.ts): add more cases, isNumberFrom1To100 function 2024-07-19 13:34:45 -03:00
P. Reis
11809637ee test(utils.ts): isNumberFrom1To100 function 2024-07-19 13:21:17 -03:00
P. Reis
dcec2ecdd0 feat: create isNumberFrom1To100 function 2024-07-19 13:19:04 -03:00
Alex Gleason
8ec5feae13
Sort events by id after created_at 2024-07-18 22:48:11 -05:00
Alex Gleason
2d239fcaec Revert "Merge branch 'tag-perf' into 'main'"
This reverts merge request !425
2024-07-18 04:11:04 +00:00
Alex Gleason
ff8d7ef9d4
EventsDB: normalizeFilters before expanding tag queries 2024-07-17 20:11:31 -05:00
Alex Gleason
0f5c28deeb
EventsDB: query tags by converting to ids filter 2024-07-17 19:58:12 -05:00
Alex Gleason
c2f578a2bb
DittoPostgres: handle pool not being opened yet 2024-07-16 09:26:49 -05:00
Alex Gleason
e208d7ef56
Merge remote-tracking branch 'origin/main' into use-postgres-js 2024-07-15 21:35:29 -05:00
Siddharth Singh
3aa8266bbe
use idle count to get avl connections 2024-07-16 07:44:55 +05:30
Siddharth Singh
53343ba349
messing with conn stats 2024-07-16 07:44:39 +05:30
Siddharth Singh
404306f203
change to connection-stats branch 2024-07-15 14:23:23 +05:30
Alex Gleason
a49e56f2a0
Increase default database timeouts 2024-07-14 10:10:26 -05:00
Alex Gleason
39fdbc1acb
Delete scavenger.test.ts 2024-07-12 14:01:21 -05:00
Alex Gleason
96fe8920cd
Make database timeouts configurable 2024-07-12 13:49:44 -05:00
Alex Gleason
c2b13b1a63
Add a ts-ignore instead of as any 2024-07-11 17:22:12 -05:00
Alex Gleason
cd961dad86
delay -> sleep, style tweaks 2024-07-11 17:19:47 -05:00
Alex Gleason
9584638d5c
Merge remote-tracking branch 'origin/main' into use-postgres-js 2024-07-11 17:16:11 -05:00
Alex Gleason
5c6479b3fe
Rate-limit messages to the relay 2024-07-11 17:10:05 -05:00
Alex Gleason
92061c267e
Merge remote-tracking branch 'origin/main' into ws-limit 2024-07-11 17:02:00 -05:00
Alex Gleason
fa53dd7f8d
createStatusController: add relay hints
Fixes https://github.com/nostrability/nostrability/issues/52
2024-07-07 00:23:00 +01:00
Alex Gleason
842adfd72b
Improve signer timeout errors 2024-07-06 23:01:00 +01:00
Alex Gleason
2167106577
Fix not being able to post 2024-07-06 20:50:39 +01:00
Siddharth Singh
36b9aae1ab
switch to postgres.js available-connections branch temporarily 2024-07-06 20:07:02 +05:30
Siddharth Singh
102398967e
fix type stuff 2024-07-06 18:18:38 +05:30
Siddharth Singh
3495092eff
add poolsize and availableconnections metrics back 2024-07-06 18:15:21 +05:30
Siddharth Singh
a804608afb Merge branch 'main' into 'use-postgres-js'
# Conflicts:
#   deno.json
#   src/db/adapters/DittoPostgres.ts
2024-07-06 12:03:21 +00:00
Alex Gleason
96a8ccb2e6
HTTP Response metrics 2024-07-05 00:07:59 +01:00
Alex Gleason
d4713cae01
Move errorHandler to a separate file 2024-07-04 23:53:20 +01:00
Alex Gleason
193dd1a011
EventsDB: remove queries for ephemeral kinds 2024-07-04 23:38:16 +01:00
P. Reis
ba29035413 refactor: put conditional into just one line 2024-07-02 18:43:28 -03:00
P. Reis
d3c3ecfd35 test(EventsDB): refactor to use RelayError instead of Error 2024-07-02 18:40:21 -03:00