diff --git a/functions/models/promise/update.ts b/functions/models/promise/update.ts index 5b605e8..79a5b44 100644 --- a/functions/models/promise/update.ts +++ b/functions/models/promise/update.ts @@ -5,15 +5,15 @@ import admin from 'firebase-admin'; import { ensureAllListsExistById, updatePromiseIdInLists, - collection + collection, + get } from './index'; -import promiseModel from './index'; const update = (db: admin.firestore.Firestore) => async ( id: string, data: IUpdatePromise ) => { - const promise = await promiseModel.get(id); + const promise = await get(id); if (_.isEmpty(promise)) { return { status: 404, message: 'Invalid Promise' }; }