tango-app-api-trax 1.0.0-beta-task.32 → 1.0.0-beta-task.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-app-api-trax",
3
- "version": "1.0.0-beta-task.32",
3
+ "version": "1.0.0-beta-task.33",
4
4
  "description": "Trax",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -18,14 +18,7 @@ import utc from 'dayjs/plugin/utc.js';
18
18
  import { logger } from 'tango-app-api-middleware';
19
19
  import mongoose from 'mongoose';
20
20
  import admin from 'firebase-admin';
21
- import path from 'path';
22
- import { fileURLToPath } from 'url';
23
- const __filename = fileURLToPath( import.meta.url ); // Get the current file path
24
- const __dirname = path.dirname( __filename );
25
- const serviceAccountPath = path.join( __dirname, '..', '..', 'fir-51e77-firebase-adminsdk-x3sdp-fd902b74ae.json' );
26
- admin.initializeApp( {
27
- credential: admin.credential.cert( serviceAccountPath ),
28
- } );
21
+
29
22
 
30
23
  const ObjectId = mongoose.Types.ObjectId;
31
24
  dayjs.extend( customParseFormat );