Skip to content

Commit

Permalink
Merge pull request #215 from assemblee-virtuelle/FixMigration
Browse files Browse the repository at this point in the history
[Patch] Fix activityPub migration
  • Loading branch information
mguihal authored Dec 26, 2024
2 parents 5b22647 + 79c40fe commit fe7a70a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions middleware/dbMigrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const { CoreService } = require('@semapps/core');
const CONFIG = require('./config/config');
const dbMigrationsService = require('./services/dbMigrations.service');
const archipelagoCore = require('./services/core.service');
const authService = require('./services/auth.service');

const broker = new ServiceBroker({
logLevel: "warn",
Expand All @@ -24,6 +25,7 @@ broker.createService({
webfinger: false,
}});

broker.createService(authService);
broker.createService(dbMigrationsService);

const executeAction = async (action, options) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module.exports = {
up: async ({ update, call }) => {
await call('activitypub.follow.updateCollectionsOptions');
await call('activitypub.inbox.updateCollectionsOptions');
await call('activitypub.outbox.updateCollectionsOptions');
await call('activitypub.like.updateCollectionsOptions');
await call('activitypub.reply.updateCollectionsOptions');
await call('activitypub.follow.updateCollectionsOptions', { dataset: 'localData' });
await call('activitypub.inbox.updateCollectionsOptions', { dataset: 'localData' });
await call('activitypub.outbox.updateCollectionsOptions', { dataset: 'localData' });
await call('activitypub.like.updateCollectionsOptions', { dataset: 'localData' });
await call('activitypub.reply.updateCollectionsOptions', { dataset: 'localData' });

const collectionsContainerUri = await call('activitypub.collection.getContainerUri');

Expand Down

0 comments on commit fe7a70a

Please sign in to comment.