From 18982f59ad5a866a99b087b14ef47744b3ffb8d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rio=20Nunes?= Date: Sun, 7 Jul 2024 11:54:32 +0100 Subject: [PATCH] fix: function imports --- functions/src/models.ts | 5 +++-- src/models/index.ts | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/functions/src/models.ts b/functions/src/models.ts index b000e1a664..f5738bbea2 100644 --- a/functions/src/models.ts +++ b/functions/src/models.ts @@ -7,8 +7,6 @@ import type * as functions from 'firebase-functions' // which can resolve at build time, but would not work if deploying direct to firebase functions. // Alternative fix would be to put the platform code one level further nested e.g. /platform/src export type { - DBDoc, - IDBEndpoint, IDiscussion, IHowtoDB, IMapPin, @@ -21,6 +19,9 @@ export type { IQuestionDB, } from '../../src/models' +export type { IDBEndpoint } from '../../src/models/dbEndpoints' +export type { DBDoc } from '../../src/models/dbDoc.model' + import { dbEndpointSubcollections, generateDBEndpoints } from 'oa-shared' export const DB_ENDPOINTS = generateDBEndpoints() diff --git a/src/models/index.ts b/src/models/index.ts index 3010a5125b..1e01c604b1 100644 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -12,6 +12,7 @@ export * from './research.models' export * from './selectorList.models' export * from './tags.model' export * from './user.models' +export * from './moderation.model' export * from './userPreciousPlastic.models' export interface UserComment extends IComment {