-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: pg-boss jobs and esign (#493)
* feat: add queue utility * feat: add QUEUE_DATABASE_URL * feat: update member invite email * feat: update password reset email * feat: update share update email * feat: update data room email job * feat: update reinvite job * feat: register jobs * feat: add eSignNotificationWorker * feat: add authVerificationEmailWorker * feat: add esign confirmation job * feat: add esign pdf worker * feat: refactor name * refactor: move lib * feat: update * feat: use singleton * feat: split and register * chore: fix connection * fix: type * chore: fix type * chore: upgrade pg-boss * chore: fix type * fix: types * feat: move audit inside handler * feat: refactor sign-template * fix: remove sent status * feat: add status complete * feat: add new enums * fix: status map * fix: status * fix: job * feat: refactor esign * fix: status enum * feat: changes * chore: upgrade react email * feat: use render method
- Loading branch information
Showing
40 changed files
with
1,095 additions
and
2,097 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
Large diffs are not rendered by default.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
prisma/migrations/20240906132847_add_new_status/migration.sql
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,16 @@ | ||
/* | ||
Warnings: | ||
- The values [SENT,WAITING] on the enum `TemplateStatus` will be removed. If these variants are still used in the database, this will fail. | ||
*/ | ||
-- AlterEnum | ||
BEGIN; | ||
CREATE TYPE "TemplateStatus_new" AS ENUM ('DRAFT', 'COMPLETE', 'PENDING', 'CANCELLED'); | ||
ALTER TABLE "Template" ALTER COLUMN "status" DROP DEFAULT; | ||
ALTER TABLE "Template" ALTER COLUMN "status" TYPE "TemplateStatus_new" USING ("status"::text::"TemplateStatus_new"); | ||
ALTER TYPE "TemplateStatus" RENAME TO "TemplateStatus_old"; | ||
ALTER TYPE "TemplateStatus_new" RENAME TO "TemplateStatus"; | ||
DROP TYPE "TemplateStatus_old"; | ||
ALTER TABLE "Template" ALTER COLUMN "status" SET DEFAULT 'DRAFT'; | ||
COMMIT; |
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 |
---|---|---|
|
@@ -602,8 +602,7 @@ model TemplateField { | |
enum TemplateStatus { | ||
DRAFT | ||
COMPLETE | ||
SENT | ||
WAITING | ||
PENDING | ||
CANCELLED | ||
} | ||
|
||
|
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
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.