Skip to content

Commit

Permalink
[backend] Fix creation id and listing
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-julien committed Mar 1, 2024
1 parent bacc6a8 commit d7c4e34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ export const upload = async (context, user, filePath, fileUpload, opts) => {

// Register in elastic
const file = {
id: key,
internal_id: key,
name: truncatedFileName,
size: uploadedFile.size,
information: '',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export const paginatedForPathWithEnrichment = async (context: AuthContext, user:
const listOptions = { ...opts, entity_id, ...findOpts, ...orderOptions };

await checkFileAccess(context, user, 'read', { entity_id, id: path, filename: '' });
const pagination = await listEntitiesPaginated<BasicStoreEntityDocument>(context, SYSTEM_USER, [ENTITY_TYPE_INTERNAL_FILE], listOptions);
const pagination = await listEntitiesPaginated<BasicStoreEntityDocument>(context, user, [ENTITY_TYPE_INTERNAL_FILE], listOptions);

// region enrichment only possible for single path resolution
// Enrich pagination for import images
Expand Down

0 comments on commit d7c4e34

Please sign in to comment.