Skip to content

Commit 99a12b3

Browse files
committed
cleanup
1 parent 16e1c20 commit 99a12b3

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

packages/rpc/src/routers/websites.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ export const websitesRouter = createTRPCRouter({
132132
}
133133
);
134134

135-
// Invalidate cache for this user's websites
136135
await drizzleCache.invalidateByTables(['websites']);
137136

138137
return website;
@@ -164,9 +163,7 @@ export const websitesRouter = createTRPCRouter({
164163
}
165164
);
166165

167-
// Invalidate cache for this user's websites
168166
await drizzleCache.invalidateByTables(['websites']);
169-
// Invalidate getById cache for this website
170167
await drizzleCache.invalidateByKey(`getById:${input.id}`);
171168

172169
return updatedWebsite;
@@ -195,9 +192,7 @@ export const websitesRouter = createTRPCRouter({
195192
}
196193
);
197194

198-
// Invalidate cache for this user's websites
199195
await drizzleCache.invalidateByTables(['websites']);
200-
// Invalidate getById cache for this website
201196
await drizzleCache.invalidateByKey(`getById:${input.id}`);
202197

203198
return { success: true };

0 commit comments

Comments
 (0)