mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
✨ Add type casting to postgres queries (#1600)
* 538 add support for casting types in postgres * Add typing to postgres insert nodes and removed unnecessary field from crate db * Added placeholder and description for types in postgres * Adding tests to insert and changes suggested by Ben * ⚡ Minor improvement Co-authored-by: mutdmour <mutdmour@gmail.com> Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
This commit is contained in:
@@ -829,7 +829,7 @@ export class HttpRequest implements INodeType {
|
||||
|
||||
// Add Content Type if any are set
|
||||
if (options.bodyContentCustomMimeType) {
|
||||
if(requestOptions.headers === undefined) {
|
||||
if (requestOptions.headers === undefined) {
|
||||
requestOptions.headers = {};
|
||||
}
|
||||
requestOptions.headers['Content-Type'] = options.bodyContentCustomMimeType;
|
||||
@@ -929,7 +929,7 @@ export class HttpRequest implements INodeType {
|
||||
if (property === 'body') {
|
||||
continue;
|
||||
}
|
||||
returnItem[property] = response![property];
|
||||
returnItem[property] = response![property];
|
||||
}
|
||||
|
||||
newItem.json = returnItem;
|
||||
|
||||
Reference in New Issue
Block a user