Skip to content

Commit a6789e3

Browse files
added null checker for the createdBy
1 parent 8a85666 commit a6789e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Database/Database.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4691,7 +4691,7 @@ public function updateDocuments(
46914691
$updates['$createdAt'] = $updates->getCreatedAt();
46924692
}
46934693

4694-
if ($updates->getCreatedBy() == null) {
4694+
if ($updates->getCreatedBy() === null) {
46954695
unset($updates['$createdBy']);
46964696
} else {
46974697
$updates['$createdBy'] = $updates->getCreatedBy();

0 commit comments

Comments
 (0)