[Bugfix] The sequence of primary columns in the table changes after updating rows using the query builder (#5374)

* fixes: The sequence of primary columns in the table changes after updating rows using the query builder

* Revert "fixes: The sequence of primary columns in the table changes after updating rows using the query builder"

This reverts commit b0f262332e.

* update query with order as parameter
This commit is contained in:
Arpit 2023-01-19 15:32:21 +05:30 committed by GitHub
parent c22059498a
commit 6e057e89b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,7 +92,7 @@ async function updateRows(queryOptions, organizationId, currentState) {
!isEmpty(whereQuery) && query.push(whereQuery);
return await tooljetDatabaseService.updateRows(organizationId, tableName, body, query.join('&'));
return await tooljetDatabaseService.updateRows(organizationId, tableName, body, query.join('&') + '&order=id');
}
async function deleteRows(queryOptions, organizationId, currentState) {