Skip to content

Commit

Permalink
fixed testing
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulhakim2902 authored and meziaris committed Dec 6, 2021
1 parent 3d16806 commit 8c887c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/__tests__/acceptance/post.acceptance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ describe('PostApplication', function () {
expect(response.body.data[0]).to.deepEqual({
...toJSON(post as Post),
totalImporter: 1,
importers: [],
user: toJSON(user),
people: toJSON(people),
comments: [toJSON(comment)],
Expand Down
12 changes: 5 additions & 7 deletions src/migrations/1.0.0.migration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {BcryptHasher} from '../services/authentication/hash.password.service';
import {config} from '../config';
import {PolkadotJs} from '../utils/polkadotJs-utils';

// TODO: create migration for user
/* eslint-disable @typescript-eslint/no-explicit-any */
@migrationScript()
export class MigrationScript100 implements MigrationScript {
version = '1.0.0';
Expand Down Expand Up @@ -37,7 +37,7 @@ export class MigrationScript100 implements MigrationScript {

const posts = await collection.aggregate().get();

console.log(posts)
console.log(posts);

await Promise.all(
posts.map(async (post: AnyObject) => {
Expand All @@ -61,16 +61,14 @@ export class MigrationScript100 implements MigrationScript {
$unset: {
totalImporter: '',
importers: '',
}
}
)
},
},
);
}

return null;
}),
);


}

async doMigratePeople(): Promise<void> {
Expand Down

0 comments on commit 8c887c6

Please sign in to comment.