♻️ Refactor time related namespaces

Mainly removes the custom app.util.time namespace
from frontend and backend and normalize all to use
the app.common.time namespace
This commit is contained in:
Andrey Antukh
2025-07-23 09:47:16 +02:00
parent 9a0c36c442
commit 283eb0419c
133 changed files with 1272 additions and 1560 deletions

View File

@@ -9,6 +9,7 @@
[app.common.features :as cfeat]
[app.common.pprint :as pp]
[app.common.thumbnails :as thc]
[app.common.time :as ct]
[app.common.types.shape :as cts]
[app.common.uuid :as uuid]
[app.config :as cf]
@@ -18,7 +19,6 @@
[app.rpc :as-alias rpc]
[app.rpc.commands.files :as files]
[app.storage :as sto]
[app.util.time :as dt]
[backend-tests.helpers :as th]
[clojure.test :as t]
[cuerdas.core :as str]))
@@ -135,7 +135,7 @@
(t/is (nil? (:users result))))))
(th/db-update! :file
{:deleted-at (dt/now)}
{:deleted-at (ct/now)}
{:id file-id})
(t/testing "query single file after delete and wait"
@@ -1844,7 +1844,7 @@
(th/run-task! :delete-object
{:object :file
:deleted-at (dt/now)
:deleted-at (ct/now)
:id (:id file-1)})
;; Check that file media object references are marked all for deletion