import * as admin from "firebase-admin" ; import config from "../../config" ; import formatTimestamp from "./formatTimestamp" ; param id param log export async function storeUploadLog ( id , log ) { const writeResult = await admin . firestore ( ) . collection ( config . upload . logDBCollection ) . doc ( id ) . set ( log ) ; console . log ( 'storeUploadLog:' , 'upload log is recorded successfully at' , formatTimestamp ( writeResult . writeTime . seconds ) ) ; }