add a SQL GRANT

This commit is contained in:
Michele Artini 2024-02-20 09:37:20 +01:00
parent 383fc49908
commit 817864942d
2 changed files with 5 additions and 5 deletions

View File

@ -97,10 +97,8 @@ public class FunderService {
writer.write("]"); writer.write("]");
log.info("Publish funders file: " + tmp.getAbsolutePath()); log.info("Publish funders file: " + tmp.getAbsolutePath());
synchronized (this) { deleteFile(tempFile);
deleteFile(tempFile); setTempFile(tmp);
setTempFile(tmp);
}
} }
} catch (final IOException e) { } catch (final IOException e) {
log.error("Error generating funders file", e); log.error("Error generating funders file", e);
@ -134,7 +132,7 @@ public class FunderService {
funder.setAggregationDates(dates); funder.setAggregationDates(dates);
} }
public synchronized File getTempFile() { public File getTempFile() {
return tempFile; return tempFile;
} }

View File

@ -19,3 +19,5 @@ FROM
LEFT OUTER JOIN dsm_organizationpids opids ON (o.id = opids.organization) LEFT OUTER JOIN dsm_organizationpids opids ON (o.id = opids.organization)
LEFT OUTER JOIN dsm_identities pids ON (opids.pid = pids.pid) LEFT OUTER JOIN dsm_identities pids ON (opids.pid = pids.pid)
GROUP BY o.id; GROUP BY o.id;
GRANT ALL ON funders_view TO dnetapi;