From ded15ac46163ac0dba5a626ce66a753f3de1eb13 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Thu, 28 Sep 2023 22:24:28 -0100 Subject: [PATCH] store display-name on insert Signed-off-by: Maxence Lange --- lib/Db/LocksRequest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Db/LocksRequest.php b/lib/Db/LocksRequest.php index 92bcf5a8..470b5fa8 100644 --- a/lib/Db/LocksRequest.php +++ b/lib/Db/LocksRequest.php @@ -51,6 +51,7 @@ public function save(FileLock $lock) { $qb->setValue('user_id', $qb->createNamedParameter($lock->getOwner())) ->setValue('file_id', $qb->createNamedParameter($lock->getFileId())) ->setValue('token', $qb->createNamedParameter($lock->getToken())) + ->setValue('owner', $qb->createNamedParameter($lock->getDisplayName())) ->setValue('creation', $qb->createNamedParameter($lock->getCreatedAt())) ->setValue('type', $qb->createNamedParameter($lock->getType())) ->setValue('ttl', $qb->createNamedParameter($lock->getTimeout()));