This commit is contained in:
Thomas Demirdjian
2025-11-04 14:48:32 +01:00
parent 4bb083ea46
commit a93707b100
21 changed files with 103 additions and 13 deletions
+4
View File
@@ -5,8 +5,10 @@ const admin = require("firebase-admin");
admin.initializeApp();
const db = admin.firestore();
const REGION = process.env.FIREBASE_REGION || "europe-west1";
exports.db = db;
exports.REGION = REGION;
exports.refList = {
projects: db.collection("projects"),
@@ -21,6 +23,7 @@ exports.refList = {
monthlyPayoutEntries: db.collection("monthlyPayoutEntries"),
monthlyPayouts: db.collection("monthlyPayouts"),
};
exports.refsList = exports.refList;
exports.ALERT_TYPE = {
NEW_LIKE: "NEW_LIKE",
@@ -45,4 +48,5 @@ exports.algolia = require("./src/algolia");
exports.notifications = require("./src/notifications");
exports.rankings = require("./src/rankings");
exports.payouts = require("./src/payouts");
exports.subscription = require("./src/subscription");
exports.youtube = require("./src/youtube");