Diego Rodrigues de Sa e Souza
ede77d1df0
fix(api): stop POST /api/keys hanging on the fire-and-forget Cloud sync ( #6570 ) ( #6624 )
...
cloudEnabled defaults to true in settings.ts::getSettings() for any install
with no persisted settings row (every fresh install), so the create-key
handler's unconditional `await syncKeysToCloudIfEnabled()` always attempted a
real outbound fetch() to CLOUD_URL via syncToCloud(). When that endpoint is
unset/unreachable/slow, the HTTP response blocked until the request settled
or timed out (20-90s+), unlike sibling routes (regenerate, /api/combos) that
never touch this side effect.
syncKeysToCloudIfEnabled() is now dispatched fire-and-forget instead of
awaited; its internal try/catch already logs failures, so cloud sync still
runs in the background without blocking the response.
2026-07-08 00:33:56 -03:00
..
2026-06-27 09:07:12 -03:00
2026-06-28 06:58:29 -03:00
2026-07-04 13:00:30 -03:00
2026-05-26 23:51:47 -03:00
2026-06-27 09:07:12 -03:00
2026-07-02 10:47:13 -03:00
2026-05-28 00:24:48 -03:00
2026-05-28 00:24:48 -03:00
2026-05-28 00:24:48 -03:00
2026-05-28 00:24:48 -03:00
2026-06-08 10:41:00 -03:00
2026-07-06 02:25:17 -03:00
2026-05-27 21:43:44 -03:00
2026-07-08 00:33:56 -03:00
2026-06-15 03:32:11 -03:00
2026-06-02 18:38:31 -03:00
2026-07-02 10:47:13 -03:00
2026-05-10 00:55:06 -03:00
2026-06-29 08:40:06 -03:00
2026-06-23 17:06:18 -03:00
2026-07-04 13:00:30 -03:00
2026-05-27 22:13:59 -03:00
2026-05-27 22:13:59 -03:00
2026-05-27 22:13:59 -03:00
2026-05-27 22:13:59 -03:00
2026-05-27 22:13:59 -03:00
2026-06-13 17:27:40 -03:00
2026-06-13 17:27:40 -03:00
2026-06-22 03:17:02 -03:00
2026-04-30 20:31:00 -03:00
2026-06-03 18:24:41 -03:00
2026-05-10 00:55:06 -03:00
2026-07-07 13:14:06 -03:00
2026-06-12 23:49:22 -03:00
2026-06-12 23:49:22 -03:00
2026-06-14 18:02:08 -03:00
2026-07-02 10:47:13 -03:00
2026-06-30 06:54:29 -03:00
2026-07-02 10:47:13 -03:00
2026-07-06 02:25:17 -03:00
2026-07-02 10:47:13 -03:00
2026-06-17 19:26:32 -03:00
2026-07-06 02:25:17 -03:00
2026-06-22 03:17:02 -03:00
2026-05-10 00:55:06 -03:00
2026-05-28 10:53:55 -03:00
2026-05-28 10:53:55 -03:00
2026-06-23 03:08:29 -03:00
2026-05-28 10:53:55 -03:00
2026-05-28 10:53:55 -03:00
2026-05-28 10:53:55 -03:00
2026-05-28 10:53:55 -03:00
2026-06-14 21:30:02 -03:00
2026-04-16 05:26:17 -03:00
2026-06-03 22:48:24 -03:00
2026-05-27 01:54:50 -03:00
2026-05-23 01:46:59 -03:00
2026-05-27 23:08:09 -03:00
2026-05-27 23:08:09 -03:00
2026-05-27 23:08:09 -03:00
2026-06-01 15:43:55 -03:00
2026-06-12 23:49:22 -03:00
2026-06-23 17:06:18 -03:00
2026-06-02 20:29:41 -03:00
2026-07-02 10:47:13 -03:00
2026-05-28 16:03:30 -03:00
2026-06-13 17:27:40 -03:00
2026-05-28 07:50:03 -03:00
2026-05-28 07:50:03 -03:00
2026-05-28 07:50:03 -03:00
2026-05-28 07:50:03 -03:00
2026-05-28 07:50:03 -03:00
2026-06-14 18:02:08 -03:00
2026-06-25 16:38:44 -03:00
2026-07-07 13:14:06 -03:00
2026-07-02 10:47:13 -03:00
2026-04-21 21:12:29 -03:00
2026-06-14 18:02:51 -03:00
2026-07-02 10:47:13 -03:00
2026-07-07 20:07:30 -03:00
2026-05-28 01:24:33 -03:00
2026-05-28 01:24:33 -03:00
2026-05-28 01:24:33 -03:00
2026-05-28 01:24:33 -03:00
2026-05-28 01:24:33 -03:00
2026-05-28 01:24:33 -03:00
2026-05-28 21:43:24 -03:00
2026-05-28 01:24:33 -03:00
2026-05-28 01:24:33 -03:00
2026-07-07 13:14:06 -03:00