continue subscriptions and coins

This commit is contained in:
Thomas Demirdjian
2025-11-05 15:39:15 +01:00
parent a58eeac079
commit 5f777f3b6d
25 changed files with 1994 additions and 222 deletions
+3 -2
View File
@@ -27,8 +27,9 @@ const getServerTimestamp = () => {
if (FieldValue?.serverTimestamp) {
return FieldValue.serverTimestamp();
}
if (admin.firestore?.FieldValue?.serverTimestamp) {
return admin.firestore.FieldValue.serverTimestamp();
const fallback = admin.firestore?.FieldValue;
if (fallback?.serverTimestamp) {
return fallback.serverTimestamp();
}
throw new HttpsError(
"failed-precondition",