Skip to content

Commit

Permalink
Merge branch 'main' into Embed-twitch
Browse files Browse the repository at this point in the history
  • Loading branch information
wirapratamaz authored Oct 21, 2024
2 parents 5a1e752 + 024118d commit 5adf3d9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 19 deletions.
19 changes: 0 additions & 19 deletions .maintain/deployment/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
version: '3'

services:
api: &api
container_name: api
image: myriadsocial/myriad-api
build:
context: ../../
dockerfile: .maintain/docker/Dockerfile
env_file:
- ../../.env
ports:
- 3003:3000
networks:
myriad:
ipv4_address: 172.27.3.3
aliases:
- api

mongo:
container_name: mongo
image: mongo:6.0.4
Expand Down Expand Up @@ -45,7 +29,6 @@ services:
default:

db_migration:
<<: *api
container_name: db_migration
restart: none
entrypoint: node ./dist/migrate
Expand Down Expand Up @@ -85,5 +68,3 @@ services:
networks:
default:
driver: bridge
myriad:
external: true
1 change: 1 addition & 0 deletions src/enums/reference-type.enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export enum ReferenceType {
USER = 'user',
WALLETADDRESS = 'wallet_address',
UNLOCKABLECONTENT = 'unlockable_content',
UNLOCKABLETIMELINE = 'unlockable_timeline',
}

export enum SectionType {
Expand Down
8 changes: 8 additions & 0 deletions src/services/experience.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,14 @@ export class ExperienceService {
userId: {eq: this.currentUser[securityId]},
},
);
const experience = await this.experienceRepository.findById(id);

if (
experience?.exclusive === true &&
this.currentUser[securityId] !== experience.createdBy
) {
return [];
}

return this.postService.find(filter, id, true);
}
Expand Down

0 comments on commit 5adf3d9

Please sign in to comment.