Skip to content

Commit

Permalink
Merge pull request #29 from alkem-io/develop
Browse files Browse the repository at this point in the history
Release: SpaceID as CollectionName
  • Loading branch information
valentinyanakiev authored Jun 24, 2024
2 parents 10bf566 + 74eb3a9 commit bb9684f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@alkemio/space-ingest",
"version": "0.5.0",
"version": "0.6.0",
"description": "",
"author": "Alkemio Foundation",
"private": true,
Expand Down
5 changes: 2 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const main = async (spaceId: string, purpose: SpaceIngestionPurpose) => {
// make sure the service user has sufficient priviliges
let space;
try {
space = await alkemioClient.ingestSpace(spaceId); // UUID
space = await alkemioClient.ingestSpace(spaceId);
} catch (error: any) {
logger.error(error.message);
logger.error(error.stack);
Expand All @@ -96,8 +96,7 @@ export const main = async (spaceId: string, purpose: SpaceIngestionPurpose) => {
alkemioClient
);

// UUID -> nameID
const ingestionResult = await ingest(space.nameID, documents, purpose);
const ingestionResult = await ingest(space.id, documents, purpose);

if (ingestionResult) {
logger.info('Space embedded.');
Expand Down

0 comments on commit bb9684f

Please sign in to comment.