File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -2053,12 +2053,7 @@ class PostgresTxAdapter extends PostgresAdapterBase implements TxAdapter {
2053
2053
} )
2054
2054
2055
2055
const model = res . map ( ( p ) => parseDoc < Tx > ( p , getSchema ( DOMAIN_MODEL_TX ) ) )
2056
- // We need to put all core.account.System transactions first
2057
- const systemTx : Tx [ ] = [ ]
2058
- const userTx : Tx [ ] = [ ]
2059
-
2060
- model . forEach ( ( tx ) => ( tx . modifiedBy === core . account . System && ! isPersonAccount ( tx ) ? systemTx : userTx ) . push ( tx ) )
2061
- return this . stripHash ( systemTx . concat ( userTx ) ) as Tx [ ]
2056
+ return this . stripHash ( model ) as Tx [ ]
2062
2057
}
2063
2058
}
2064
2059
function prepareJsonValue ( tkey : string , valType : string ) : { tlkey : string , arrowCount : number } {
@@ -2121,13 +2116,3 @@ export async function createPostgresTxAdapter (
2121
2116
'tx' + wsIds . url
2122
2117
)
2123
2118
}
2124
-
2125
- function isPersonAccount ( tx : Tx ) : boolean {
2126
- return (
2127
- ( tx . _class === core . class . TxCreateDoc ||
2128
- tx . _class === core . class . TxUpdateDoc ||
2129
- tx . _class === core . class . TxRemoveDoc ) &&
2130
- ( ( tx as TxCUD < Doc > ) . objectClass === 'contact:class:PersonAccount' ||
2131
- ( tx as TxCUD < Doc > ) . objectClass === 'contact:class:EmployeeAccount' )
2132
- )
2133
- }
You can’t perform that action at this time.
0 commit comments