mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-20 16:07:39 +00:00
fixed db errors
This commit is contained in:
@@ -35,7 +35,6 @@ const internalPassthroughHost = {
|
|||||||
|
|
||||||
return passthroughHostModel
|
return passthroughHostModel
|
||||||
.query()
|
.query()
|
||||||
.omit(omissions())
|
|
||||||
.insertAndFetch(data);
|
.insertAndFetch(data);
|
||||||
})
|
})
|
||||||
.then((row) => {
|
.then((row) => {
|
||||||
@@ -88,7 +87,6 @@ const internalPassthroughHost = {
|
|||||||
|
|
||||||
return passthroughHostModel
|
return passthroughHostModel
|
||||||
.query()
|
.query()
|
||||||
.omit(omissions())
|
|
||||||
.patchAndFetchById(row.id, data)
|
.patchAndFetchById(row.id, data)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
return internalNginx.configure(passthroughHostModel, 'ssl_passthrough_host', {})
|
return internalNginx.configure(passthroughHostModel, 'ssl_passthrough_host', {})
|
||||||
@@ -137,11 +135,6 @@ const internalPassthroughHost = {
|
|||||||
query.andWhere('owner_user_id', access.token.getUserId(1));
|
query.andWhere('owner_user_id', access.token.getUserId(1));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Custom omissions
|
|
||||||
if (typeof data.omit !== 'undefined' && data.omit !== null) {
|
|
||||||
query.omit(data.omit);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (typeof data.expand !== 'undefined' && data.expand !== null) {
|
if (typeof data.expand !== 'undefined' && data.expand !== null) {
|
||||||
query.withGraphFetched('[' + data.expand.join(', ') + ']');
|
query.withGraphFetched('[' + data.expand.join(', ') + ']');
|
||||||
}
|
}
|
||||||
|
@@ -46,7 +46,6 @@ class SslPassthrougHost extends Model {
|
|||||||
},
|
},
|
||||||
modify: function (qb) {
|
modify: function (qb) {
|
||||||
qb.where('user.is_deleted', 0);
|
qb.where('user.is_deleted', 0);
|
||||||
qb.omit(['id', 'created_on', 'modified_on', 'is_deleted', 'email', 'roles']);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user