-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #586 from chaynHQ/develop
Merge Develop onto Main
- Loading branch information
Showing
27 changed files
with
779 additions
and
989 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
### Issue link / number: | ||
### Resolves #enter-issue-number | ||
|
||
### What changes did you make? | ||
### What changes did you make and why did you make them? | ||
|
||
### Why did you make the changes? | ||
### Did you run tests? Share screenshot of results: | ||
|
||
### Did you run tests? | ||
### How did you find us? (GitHub, Google search, social media, etc.): | ||
|
||
<!---IMPORTANT NOTE ABOUT RUNNING TESTS: -> | ||
<!---ABOUT RUNNING TESTS :-> | ||
- Directions for running tests are in the README.md. | ||
- Tests are not required to pass. | ||
- Run unit tests | ||
- Run integration tests if required for contribution. | ||
- Some tests may require multiple runs before success. | ||
- Some test failures may not be due to your contribution and can be ignored. | ||
- If tests fail without resolution, please let us know here. | ||
- Directions for running tests are in the README.md | ||
- Some test failures may not be due to your contribution and can be ignored. We are always upgrading testing performance. | ||
<!--- PR CHECKLIST: PLEASE REMOVE BEFORE SUBMITTING —> | ||
<!--- PR CHECKLIST: —> | ||
Before submitting, check that you have completed the following tasks: | ||
- [ ] Answered the questions above. | ||
- [ ] Read Chayn's Contributing Guidelines in the CONTRIBUTING.md file. | ||
- [ ] Enabled "Allow edits and access to secrets by maintainers" on this PR. | ||
- [ ] If applicable, include images in the description. | ||
After submitting, please be available for discussion. Thank you! |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
#Create Time Stamp | ||
DATE=`date "+%Y%m%d"` | ||
|
||
TIMESTAMP=`date "+%Y%m%d-%H%M%S"` | ||
|
||
set -e | ||
|
||
#Backup Remote database | ||
curl `heroku pg:backups public-url --app bloom-backend-staging` > bloom_$TIMESTAMP.dump | ||
heroku pg:backups:capture --app bloom-backend-staging | ||
heroku pg:backups:download --app bloom-backend-staging | ||
|
||
#Load backup into local database | ||
docker exec -i bloom-local-db pg_restore -U postgres -d bloom < bloom_$TIMESTAMP.dump | ||
docker exec -i bloom-local-db pg_restore -U postgres -d bloom < latest.dump | ||
|
||
rm latest.dump |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { MigrationInterface, QueryRunner } from "typeorm"; | ||
|
||
export class BloomBackend1722295564731 implements MigrationInterface { | ||
name = 'BloomBackend1722295564731' | ||
|
||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`ALTER TABLE "user" ADD "deletedAt" TIMESTAMP WITH TIME ZONE`); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "deletedAt"`); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { Expose } from 'class-transformer'; | ||
import { IsDefined, IsNotEmpty, IsOptional, IsString } from 'class-validator'; | ||
|
||
@Expose() | ||
export class GetSubscriptionUserDto { | ||
@ApiProperty() | ||
@IsString() | ||
@IsDefined() | ||
@IsNotEmpty() | ||
id: string; | ||
|
||
@ApiProperty() | ||
@IsString() | ||
@IsDefined() | ||
@IsNotEmpty() | ||
subscriptionId: string; | ||
|
||
@ApiProperty() | ||
@IsString() | ||
@IsDefined() | ||
@IsNotEmpty() | ||
@Expose() | ||
subscriptionName: string; | ||
|
||
@ApiProperty() | ||
@IsString() | ||
@IsDefined() | ||
@IsNotEmpty() | ||
subscriptionInfo: string; | ||
|
||
@ApiProperty() | ||
@IsDefined() | ||
createdAt: Date; | ||
|
||
@ApiProperty() | ||
@IsOptional() | ||
cancelledAt: Date | null; | ||
} |
Oops, something went wrong.