mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(core): Revert rule @typescript-eslint/prefer-nullish-coalescing
This commit is contained in:
@@ -18,7 +18,7 @@ export async function matrixApiRequest(
|
||||
) {
|
||||
let options: OptionsWithUri = {
|
||||
method,
|
||||
headers: headers ?? {
|
||||
headers: headers || {
|
||||
'Content-Type': 'application/json; charset=utf-8',
|
||||
},
|
||||
body,
|
||||
@@ -38,7 +38,7 @@ export async function matrixApiRequest(
|
||||
|
||||
options.uri = `${credentials.homeserverUrl}/_matrix/${
|
||||
//@ts-ignore
|
||||
option.overridePrefix ?? 'client'
|
||||
option.overridePrefix || 'client'
|
||||
}/r0${resource}`;
|
||||
options.headers!.Authorization = `Bearer ${credentials.accessToken}`;
|
||||
const response = await this.helpers.request(options);
|
||||
|
||||
Reference in New Issue
Block a user