1.0.33
This commit is contained in:
85 files changed
+10118
-1046
No files matched your search
@@ -63,7 +63,7 @@ export const POST: RequestHandler = async (event) => {
|
||||
} else if (type === 'apprise') {
|
||||
const appriseConfig = config as AppriseConfig;
|
||||
if (!appriseConfig.urls?.length) {
|
||||
return json({ error: 'Apprise config requires at least one URL' }, { status: 400 });
|
||||
return json({ error: 'Webhook config requires at least one URL' }, { status: 400 });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ export const PUT: RequestHandler = async (event) => {
|
||||
} else if (existing.type === 'apprise') {
|
||||
const appriseConfig = config as AppriseConfig;
|
||||
if (!appriseConfig.urls?.length) {
|
||||
return json({ error: 'Apprise config requires at least one URL' }, { status: 400 });
|
||||
return json({ error: 'Webhook config requires at least one URL' }, { status: 400 });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ export const POST: RequestHandler = async ({ request, cookies }) => {
|
||||
if (data.type === 'apprise') {
|
||||
const config = data.config;
|
||||
if (!config.urls?.length) {
|
||||
return json({ error: 'At least one Apprise URL is required' }, { status: 400 });
|
||||
return json({ error: 'At least one webhook URL is required' }, { status: 400 });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user