export default async function addEfile(db, data) {
  const output = { ...data, createdAt: new Date() };
  if (data.jobId) {
    output.job = db.document("jobs", data.jobId);
    delete output.jobId;
  }
  return db.add("efiles", data);
}
//# sourceMappingURL=addEfile.js.map