Skip to content

Commit e9706f6

Browse files
added null checker for the createdBy
1 parent 72daaa5 commit e9706f6

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
@@ -4580,7 +4580,7 @@ public function updateDocuments(
45804580
$updates['$createdAt'] = $updates->getCreatedAt();
45814581
}
45824582

4583-
if ($updates->getCreatedBy() == null) {
4583+
if ($updates->getCreatedBy() === null) {
45844584
unset($updates['$createdBy']);
45854585
} else {
45864586
$updates['$createdBy'] = $updates->getCreatedBy();

0 commit comments

Comments
 (0)