@overmap-ai/core 1.0.71-project-file-improvements.0 → 1.0.71-project-file-improvements.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5060,6 +5060,9 @@ class ProjectAccessService extends BaseApiService {
5060
5060
  }
5061
5061
  class ProjectFileService extends BaseUploadService {
5062
5062
  async add(payload) {
5063
+ var _a2;
5064
+ const { store } = this.client;
5065
+ const createdBy = (_a2 = store.getState().userReducer.currentUser) == null ? void 0 : _a2.id;
5063
5066
  const { file, ...payloadWithoutFile } = payload;
5064
5067
  const sha1 = await hashFile(file);
5065
5068
  const filePayload = {
@@ -5071,6 +5074,7 @@ class ProjectFileService extends BaseUploadService {
5071
5074
  const offlineProjectFile = offline({
5072
5075
  ...payloadWithoutFile,
5073
5076
  submitted_at: (/* @__PURE__ */ new Date()).toISOString(),
5077
+ created_by: createdBy,
5074
5078
  file_name: file.name,
5075
5079
  file_sha1: sha1,
5076
5080
  file: URL.createObjectURL(file)