fix: address Bugbot review #2 findings
- Invalidate integration data cache from widget interact mutations (downloads, dns-hole, media-requests, indexer-manager, smart-home, anchor-notes) - Redis handler getExpiration: fetch missing tags from Redis (multi-instance coherence) - saveItemOptions: invalidate board cache after saving - Remove unused cacheTags.app - Fix integration data cache comment accuracy
This commit is contained in:
11 files changed
+60
-6
No files matched your search
@@ -7,6 +7,7 @@ import { anchorNotesListInputSchema, anchorNoteUpdateInputSchema, createIntegrat
|
||||
import { anchorNoteRequestHandler, anchorNotesListRequestHandler } from "@homarr/request-handler/anchor-notes";
|
||||
|
||||
import { createOneIntegrationMiddleware } from "../../middlewares/integration";
|
||||
import { invalidateIntegrationDataCache } from "../../integration-data-cache";
|
||||
import { createTRPCRouter, protectedProcedure, publicProcedure } from "../../trpc";
|
||||
|
||||
const noteIdInput = z.object({
|
||||
@@ -75,6 +76,7 @@ export const anchorNotesRouter = createTRPCRouter({
|
||||
...(normalizedContent !== undefined ? { content: normalizedContent } : {}),
|
||||
});
|
||||
|
||||
invalidateIntegrationDataCache(ctx.integration.id);
|
||||
return updatedNote;
|
||||
} catch (error) {
|
||||
if (error instanceof ResponseError && error.statusCode === 400) {
|
||||
|
||||
Reference in new issue
Block a user