mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 09:36:08 +00:00
feat: Implement notification settings and logic for new video versions.
This commit is contained in:
@@ -26,6 +26,7 @@ export async function GET() {
|
||||
telegramEnabled: false,
|
||||
emailEnabled: false,
|
||||
onNewVideo: true,
|
||||
onNewVersion: true,
|
||||
onNewComment: true,
|
||||
onNewReply: true,
|
||||
timezone: 'UTC',
|
||||
@@ -57,6 +58,7 @@ export async function PUT(request: NextRequest) {
|
||||
telegramEnabled,
|
||||
emailEnabled,
|
||||
onNewVideo,
|
||||
onNewVersion,
|
||||
onNewComment,
|
||||
onNewReply,
|
||||
timezone,
|
||||
@@ -76,6 +78,7 @@ export async function PUT(request: NextRequest) {
|
||||
telegramEnabled: !!telegramEnabled,
|
||||
emailEnabled: !!emailEnabled,
|
||||
onNewVideo: onNewVideo ?? true,
|
||||
onNewVersion: onNewVersion ?? true,
|
||||
onNewComment: onNewComment ?? true,
|
||||
onNewReply: onNewReply ?? true,
|
||||
timezone: timezone || 'UTC',
|
||||
@@ -86,6 +89,7 @@ export async function PUT(request: NextRequest) {
|
||||
telegramEnabled: !!telegramEnabled,
|
||||
emailEnabled: !!emailEnabled,
|
||||
onNewVideo: onNewVideo ?? true,
|
||||
onNewVersion: onNewVersion ?? true,
|
||||
onNewComment: onNewComment ?? true,
|
||||
onNewReply: onNewReply ?? true,
|
||||
timezone: timezone || 'UTC',
|
||||
|
||||
Reference in New Issue
Block a user