We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 074e384 commit 63747d7Copy full SHA for 63747d7
backend/src/main/java/org/cryptomator/hub/entities/events/AuditEvent.java
@@ -47,13 +47,13 @@
47
""")
48
@NamedQuery(name = "AuditEvent.lastVaultKeyRetrieve",
49
query = """
50
- SELECT v1
51
- FROM VaultKeyRetrievedEvent v1
52
- WHERE v1.deviceId IN (:deviceIds)
53
- AND v1.timestamp = (
54
- SELECT MAX(v2.timestamp)
55
- FROM VaultKeyRetrievedEvent v2
56
- WHERE v2.deviceId = v1.deviceId
+ SELECT e1
+ FROM VaultKeyRetrievedEvent e1
+ WHERE e1.deviceId IN (:deviceIds)
+ AND e1.timestamp = (
+ SELECT MAX(e2.timestamp)
+ FROM VaultKeyRetrievedEvent e2
+ WHERE e2.deviceId = e1.deviceId
57
)
58
59
@SequenceGenerator(name = "audit_event_id_seq", sequenceName = "audit_event_id_seq", allocationSize = 1)
0 commit comments