-
Notifications
You must be signed in to change notification settings - Fork 5
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 #72 from infinitybase/staging
Staging
- Loading branch information
Showing
34 changed files
with
154 additions
and
169 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
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 |
---|---|---|
|
@@ -5,6 +5,7 @@ yarn.lock | |
package-lock.json | ||
.editorconfig | ||
bsafe/ | ||
pnpm-lock.yaml | ||
|
||
#env | ||
.env.staging | ||
|
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,4 +1,4 @@ | ||
FROM node:18.14.2 | ||
FROM node:18.18.2 | ||
|
||
|
||
# Create app directory | ||
|
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
25 changes: 13 additions & 12 deletions
25
src/database/migrations/1695162520664-add-parovider-and-connected-to-users.ts
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 @@ | ||
import { MigrationInterface, QueryRunner, Table, TableColumn } from 'typeorm'; | ||
import { MigrationInterface, QueryRunner, TableColumn } from 'typeorm'; | ||
|
||
const cProvider = new TableColumn({ | ||
name: 'provider', | ||
type: 'varchar', | ||
}); | ||
|
||
const cUsers = new TableColumn({ | ||
name: 'address', | ||
type: 'varchar', | ||
}); | ||
|
||
export class addParoviderAndConnectedToUsers1695162520664 | ||
implements MigrationInterface { | ||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.addColumns('users', [ | ||
new TableColumn({ | ||
name: 'address', | ||
type: 'varchar', | ||
}), | ||
new TableColumn({ | ||
name: 'provider', | ||
type: 'varchar', | ||
}), | ||
]); | ||
await queryRunner.addColumns('users', [cProvider, cUsers]); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.dropColumns('users', ['connected_users', 'provider']); | ||
await queryRunner.dropColumns('users', [cProvider, cUsers]); | ||
} | ||
} |
38 changes: 18 additions & 20 deletions
38
src/database/migrations/1695163991051-add-collumns-to-usertoken.ts
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,29 +1,27 @@ | ||
import { MigrationInterface, QueryRunner, TableColumn } from 'typeorm'; | ||
|
||
const cExpired = new TableColumn({ | ||
name: 'expired_at', | ||
type: 'timestamp', | ||
isNullable: true, | ||
}); | ||
|
||
const cEncoder = new TableColumn({ | ||
name: 'encoder', | ||
type: 'varchar', | ||
}); | ||
|
||
const cProvider = new TableColumn({ | ||
name: 'provider', | ||
type: 'varchar', | ||
}); | ||
|
||
export class addCollumnsToUsertoken1695163991051 implements MigrationInterface { | ||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.addColumns('user_tokens', [ | ||
new TableColumn({ | ||
name: 'expired_at', | ||
type: 'timestamp', | ||
isNullable: true, | ||
}), | ||
new TableColumn({ | ||
name: 'encoder', | ||
type: 'varchar', | ||
}), | ||
new TableColumn({ | ||
name: 'provider', | ||
type: 'varchar', | ||
}), | ||
]); | ||
await queryRunner.addColumns('user_tokens', [cExpired, cEncoder, cProvider]); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.dropColumns('user_tokens', [ | ||
'expired_at', | ||
'encoder', | ||
'provider', | ||
]); | ||
await queryRunner.dropColumns('user_tokens', [cExpired, cEncoder, cProvider]); | ||
} | ||
} |
13 changes: 6 additions & 7 deletions
13
src/database/migrations/1695646779754-add-collumn-to-user-token.ts
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,16 +1,15 @@ | ||
import { MigrationInterface, QueryRunner, TableColumn } from 'typeorm'; | ||
|
||
const cpayload = new TableColumn({ | ||
name: 'payload', | ||
type: 'text', | ||
}); | ||
export class addCollumnToUserToken1695646779754 implements MigrationInterface { | ||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.addColumns('user_tokens', [ | ||
new TableColumn({ | ||
name: 'payload', | ||
type: 'text', | ||
}), | ||
]); | ||
await queryRunner.addColumns('user_tokens', [cpayload]); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.dropColumns('user_tokens', ['payload']); | ||
await queryRunner.dropColumns('user_tokens', [cpayload]); | ||
} | ||
} |
27 changes: 14 additions & 13 deletions
27
src/database/migrations/1702391257625-add-notifications-columns-to-users-table.ts
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,23 +1,24 @@ | ||
import { MigrationInterface, QueryRunner, TableColumn } from 'typeorm'; | ||
|
||
const cnotify = new TableColumn({ | ||
name: 'notify', | ||
type: 'boolean', | ||
default: false, | ||
}); | ||
|
||
const cFirstLogin = new TableColumn({ | ||
name: 'first_login', | ||
type: 'boolean', | ||
default: true, | ||
}); | ||
|
||
export class addNotificationsColumnsToUsersTable1702391257625 | ||
implements MigrationInterface { | ||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.addColumns('users', [ | ||
new TableColumn({ | ||
name: 'first_login', | ||
type: 'boolean', | ||
default: true, | ||
}), | ||
new TableColumn({ | ||
name: 'notify', | ||
type: 'boolean', | ||
default: false, | ||
}), | ||
]); | ||
await queryRunner.addColumns('users', [cFirstLogin, cnotify]); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.dropColumns('users', ['first_login', 'notify']); | ||
await queryRunner.dropColumns('users', [cnotify, cFirstLogin]); | ||
} | ||
} |
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
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 |
---|---|---|
|
@@ -11,10 +11,11 @@ import { NotificationService } from './services'; | |
const router = Router(); | ||
const notificationService = new NotificationService(); | ||
const { readAll, list } = new NotificationController(notificationService); | ||
const { MAIL_TESTING_NOTIFICATIONS } = process.env; | ||
|
||
// ENDPOINT TO VALIDATE EMAIL SENDING | ||
router.get('/mail', async (_, res) => { | ||
const to = '[email protected]'; | ||
const to = MAIL_TESTING_NOTIFICATIONS; | ||
const data = { | ||
summary: { | ||
vaultName: 'Vault Name', | ||
|
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
Oops, something went wrong.