Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions apps/web/src/app/_authenticated/settings/preferences.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@ import { Shortcuts } from "~/features/shortcuts/components/shortcuts";
import { SettingsWrapper } from "./-wrapper";
import { Appearance } from "./preferences/-appearance";
import { Bangs } from "./preferences/-bangs";
import { Notifications } from "./preferences/-notifications";
import { Personalization } from "./preferences/-personalization";

export const Route = createFileRoute("/_authenticated/settings/preferences")({
component: PreferencesPage,
loader: async ({ context }) => {
await Promise.all([
context.queryClient.ensureQueryData(userQueries.info()),
context.queryClient.ensureQueryData(userQueries.newsletterPreference()),
context.queryClient.ensureQueryData(userQueries.showModelSelector()),
]);
},
Expand All @@ -25,7 +23,6 @@ function PreferencesPage() {
<SettingsWrapper>
<Appearance />
<Personalization />
<Notifications />
<Shortcuts />
<Bangs />
</SettingsWrapper>
Expand Down

This file was deleted.

6 changes: 0 additions & 6 deletions packages/db/src/crons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ crons.monthly(
internal.ai.suggestions.cleanup,
);

crons.weekly(
"send-newsletter",
{ dayOfWeek: "thursday", hourUTC: 18, minuteUTC: 0 },
internal.mail.actions.sendNewsletter,
);

crons.interval(
"Remove old emails from the resend component",
{ hours: 12 },
Expand Down
1 change: 0 additions & 1 deletion packages/db/src/user/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export const ensureUserExists = mutation({
await ctx.db.insert("users", {
userId: identity.subject,
email: identity.email ?? "",
newsletter: true,
});
},
});
Expand Down
4 changes: 0 additions & 4 deletions packages/features/src/user/lib/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,4 @@ export const userQueries = {
queryOptions({
...convexQuery(api.user.subscription.showModelSelector, {}),
}),
newsletterPreference: () =>
queryOptions({
...convexQuery(api.mail.newsletter.getUserPreference, {}),
}),
};
Loading