Skip to content

Commit 235fe53

Browse files
changed "DbDateTime" to "UtopiaDateTime"
1 parent 89eed2b commit 235fe53

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Migration/Sources/Appwrite.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use Appwrite\Services\Teams;
1212
use Appwrite\Services\Users;
1313
use Utopia\Database\Database as UtopiaDatabase;
14-
use Utopia\Database\DateTime as DbDateTime;
14+
use Utopia\Database\DateTime as UtopiaDateTime;
1515
use Utopia\Migration\Exception;
1616
use Utopia\Migration\Resource;
1717
use Utopia\Migration\Resources\Auth\Hash;
@@ -922,8 +922,8 @@ private function exportIndexes(int $batchSize): void
922922
$index['attributes'],
923923
[],
924924
$index['orders'],
925-
$index['$createdAt'] = empty($index['$createdAt']) ? DbDateTime::now() : $index['$createdAt'],
926-
$index['$updatedAt'] = empty($index['$updatedAt']) ? DbDateTime::now() : $index['$updatedAt'],
925+
$index['$createdAt'] = empty($index['$createdAt']) ? UtopiaDateTime::now() : $index['$createdAt'],
926+
$index['$updatedAt'] = empty($index['$updatedAt']) ? UtopiaDateTime::now() : $index['$updatedAt'],
927927
);
928928
}
929929

0 commit comments

Comments
 (0)