Merge pull request #961 from automatisch/use-custom-server-in-ntfy

fix(ntfy): use given server URL instead of default
This commit is contained in:
Ali BARIN
2023-02-27 21:00:31 +01:00
committed by GitHub

View File

@@ -1,8 +1,8 @@
import { TBeforeRequest } from '@automatisch/types';
const addAuthHeader: TBeforeRequest = ($, requestConfig) => {
if ($.auth.data.apiBaseUrl) {
requestConfig.baseURL = $.auth.data.apiBaseUrl as string;
if ($.auth.data.serverUrl) {
requestConfig.baseURL = $.auth.data.serverUrl as string;
}
if ($.auth.data?.username && $.auth.data?.password) {