File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -972,7 +972,7 @@ const idFilter = (options) => {
972972 return query . sql ? query : sql `TRUE` ;
973973} ;
974974
975- const _getAllEntitiesState = ( datasetId , options ) => sql `
975+ const getEntitiesState = ( datasetId , options = QueryOptions . none ) => ( { all } ) => all ( sql `
976976 SELECT uuid, "deletedAt" IS NOT NULL as deleted
977977 FROM entities
978978 WHERE "datasetId" = ${ datasetId }
@@ -987,10 +987,7 @@ const _getAllEntitiesState = (datasetId, options) => sql`
987987 ) purged
988988 WHERE ${ idFilter ( options ) }
989989 -- union with not approved
990- ` ;
991-
992- const getEntitiesState = ( datasetId , options = QueryOptions . none ) =>
993- ( { all } ) => all ( _getAllEntitiesState ( datasetId , options ) ) ;
990+ ` ) ;
994991
995992module . exports = {
996993 createNew, _processSubmissionEvent,
You can’t perform that action at this time.
0 commit comments