Merge pull request #4381 from ZeroDeng01/ZeroDeng01-patch-1

Fixed an issue with the 500 error code on the Stream list page
This commit is contained in:
jc21
2025-06-30 13:45:05 +10:00
committed by GitHub

View File

@ -369,7 +369,7 @@ const internalStream = {
.where('is_deleted', 0) .where('is_deleted', 0)
.groupBy('id') .groupBy('id')
.allowGraph('[owner,certificate]') .allowGraph('[owner,certificate]')
.orderByRaw('CAST(incoming_port AS INTEGER) ASC'); .orderBy('incoming_port', 'ASC');
if (access_data.permission_visibility !== 'all') { if (access_data.permission_visibility !== 'all') {
query.andWhere('owner_user_id', access.token.getUserId(1)); query.andWhere('owner_user_id', access.token.getUserId(1));