diff --git a/functions/auth/onCreate.js b/functions/auth/onCreate.js index d147363..4000169 100644 --- a/functions/auth/onCreate.js +++ b/functions/auth/onCreate.js @@ -1,4 +1,4 @@ -import { logger } from 'firebase-functions/v1'; +import { logger } from 'firebase-functions/v2'; import { getFirestore } from 'firebase-admin/firestore'; const db = getFirestore(); diff --git a/functions/database/submissions/onCancelSubmission.js b/functions/database/submissions/onCancelSubmission.js index cb58368..3a3234f 100644 --- a/functions/database/submissions/onCancelSubmission.js +++ b/functions/database/submissions/onCancelSubmission.js @@ -1,4 +1,4 @@ -import { logger } from 'firebase-functions/v1'; +import { logger } from 'firebase-functions/v2'; import { getFirestore } from 'firebase-admin/firestore'; import { safelyInitializeApp } from '../../firebase.js'; import { getContactsToNotify, notify } from '../../emailHelpers.js'; diff --git a/functions/database/submissions/onCreateAddLocation.js b/functions/database/submissions/onCreateAddLocation.js index 7f808a9..e537ad1 100644 --- a/functions/database/submissions/onCreateAddLocation.js +++ b/functions/database/submissions/onCreateAddLocation.js @@ -1,4 +1,4 @@ -import { logger } from 'firebase-functions/v1'; +import { logger } from 'firebase-functions/v2'; import { getFirestore, GeoPoint } from 'firebase-admin/firestore'; import ky from 'ky'; import { safelyInitializeApp } from '../../firebase.js'; diff --git a/functions/database/submissions/onCreateMonument.js b/functions/database/submissions/onCreateMonument.js index 1a36c8e..f4478e6 100644 --- a/functions/database/submissions/onCreateMonument.js +++ b/functions/database/submissions/onCreateMonument.js @@ -1,4 +1,4 @@ -import { logger } from 'firebase-functions/v1'; +import { logger } from 'firebase-functions/v2'; import { getFirestore } from 'firebase-admin/firestore'; import { getStorage } from 'firebase-admin/storage'; import { diff --git a/functions/emailHelpers.js b/functions/emailHelpers.js index 8e34b19..f9ccd68 100644 --- a/functions/emailHelpers.js +++ b/functions/emailHelpers.js @@ -1,6 +1,6 @@ import client from '@sendgrid/client'; import { Base64Encode } from 'base64-stream'; -import { logger } from 'firebase-functions/v1'; +import { logger } from 'firebase-functions/v2'; export const notify = (key, template) => { if (process.env.NODE_ENV !== 'production') { diff --git a/functions/https/getMyContent.js b/functions/https/getMyContent.js index c45898e..c7bb612 100644 --- a/functions/https/getMyContent.js +++ b/functions/https/getMyContent.js @@ -1,4 +1,4 @@ -import { logger } from 'firebase-functions/v1'; +import { logger } from 'firebase-functions/v2'; import { getFirestore } from 'firebase-admin/firestore'; import { graphicConverter, myContentConverter } from '../converters.js'; import { safelyInitializeApp } from '../firebase.js'; diff --git a/functions/https/getMyProfile.js b/functions/https/getMyProfile.js index 9a16134..7933817 100644 --- a/functions/https/getMyProfile.js +++ b/functions/https/getMyProfile.js @@ -1,4 +1,4 @@ -import { https, logger } from 'firebase-functions/v1'; +import { https, logger } from 'firebase-functions/v2'; import { getFirestore } from 'firebase-admin/firestore'; import { safelyInitializeApp } from '../firebase.js'; diff --git a/functions/https/postCancelCorner.js b/functions/https/postCancelCorner.js index 4aa39d6..0059500 100644 --- a/functions/https/postCancelCorner.js +++ b/functions/https/postCancelCorner.js @@ -1,4 +1,4 @@ -import { https, logger } from 'firebase-functions/v1'; +import { https, logger } from 'firebase-functions/v2'; import { getFirestore } from 'firebase-admin/firestore'; import { getStorage } from 'firebase-admin/storage'; import { safelyInitializeApp } from '../firebase.js'; diff --git a/functions/https/postCorner.js b/functions/https/postCorner.js index 57a1e54..7f1a614 100644 --- a/functions/https/postCorner.js +++ b/functions/https/postCorner.js @@ -1,4 +1,4 @@ -import { https, logger } from 'firebase-functions/v1'; +import { https, logger } from 'firebase-functions/v2'; import { getFirestore, GeoPoint } from 'firebase-admin/firestore'; import { parseDms } from 'dms-conversion'; import * as schemas from '../shared/cornerSubmission/Schema.js'; diff --git a/functions/https/postGeneratePreview.js b/functions/https/postGeneratePreview.js index c7d3a18..80b3256 100644 --- a/functions/https/postGeneratePreview.js +++ b/functions/https/postGeneratePreview.js @@ -1,6 +1,6 @@ import { getFirestore } from 'firebase-admin/firestore'; import { getStorage } from 'firebase-admin/storage'; -import { https, logger } from 'firebase-functions/v1'; +import { https, logger } from 'firebase-functions/v2'; import { createPdfDocument, generatePdfDefinition, diff --git a/functions/https/postProfile.js b/functions/https/postProfile.js index 8b968aa..6522f9c 100644 --- a/functions/https/postProfile.js +++ b/functions/https/postProfile.js @@ -1,4 +1,4 @@ -import { https, logger } from 'firebase-functions/v1'; +import { https, logger } from 'firebase-functions/v2'; import { getFirestore } from 'firebase-admin/firestore'; import { profileSchema } from '../shared/cornerSubmission/Schema.js'; import { safelyInitializeApp } from '../firebase.js'; diff --git a/functions/pdfHelpers.js b/functions/pdfHelpers.js index 7357382..c206453 100644 --- a/functions/pdfHelpers.js +++ b/functions/pdfHelpers.js @@ -1,6 +1,6 @@ import { Base64Encode } from 'base64-stream'; import { Buffer } from 'buffer'; -import { logger } from 'firebase-functions/v1'; +import { logger } from 'firebase-functions/v2'; import path from 'path'; import { PDFDocument } from 'pdf-lib'; import PdfPrinter from 'pdfmake'; diff --git a/functions/storage/onCreateNotify.js b/functions/storage/onCreateNotify.js index d615ce5..567aa78 100644 --- a/functions/storage/onCreateNotify.js +++ b/functions/storage/onCreateNotify.js @@ -1,4 +1,4 @@ -import { logger } from 'firebase-functions/v1'; +import { logger } from 'firebase-functions/v2'; import { getStorage } from 'firebase-admin/storage'; import { getFirestore } from 'firebase-admin/firestore'; import { safelyInitializeApp } from '../firebase.js'; diff --git a/functions/storage/onDelete.js b/functions/storage/onDelete.js index 5e35b44..cb30c9c 100644 --- a/functions/storage/onDelete.js +++ b/functions/storage/onDelete.js @@ -1,4 +1,4 @@ -import { https, logger } from 'firebase-functions/v1'; +import { https, logger } from 'firebase-functions/v2'; import { getFirestore } from 'firebase-admin/firestore'; import { safelyInitializeApp } from '../firebase.js';