Skip to content

Commit 63747d7

Browse files
committed
Minor cleanup (rename v1 to e1)
1 parent 074e384 commit 63747d7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

backend/src/main/java/org/cryptomator/hub/entities/events/AuditEvent.java

+7-7
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@
4747
""")
4848
@NamedQuery(name = "AuditEvent.lastVaultKeyRetrieve",
4949
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
50+
SELECT e1
51+
FROM VaultKeyRetrievedEvent e1
52+
WHERE e1.deviceId IN (:deviceIds)
53+
AND e1.timestamp = (
54+
SELECT MAX(e2.timestamp)
55+
FROM VaultKeyRetrievedEvent e2
56+
WHERE e2.deviceId = e1.deviceId
5757
)
5858
""")
5959
@SequenceGenerator(name = "audit_event_id_seq", sequenceName = "audit_event_id_seq", allocationSize = 1)

0 commit comments

Comments
 (0)