Add Azure Blob Storage archive & email safety net
- Add AzureBlobStorageService, DocumentArchiveSyncService, and related config for secondary PDF archiving of invoices/reminders - Add SQL procs and schema changes for archive backfill - Update invoice/reminder services to upload PDFs to blob storage - Add telemetry counters and unit tests for blob storage/archive logic - Add Fuchs:Email:OverrideRecipient config and enforce dev/test email redirect in ProcessWebComService, with tests - Improve JS date parsing (German formats), stricter JSON date detection - Increase widget SQL timeouts, update dependencies, docs, and project files
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
|
||||
-- =============================================
|
||||
-- Author: <Author,,Name>
|
||||
-- Create date: <Create Date,,>
|
||||
-- Description: Returns the stored file bytes for a single invoice, for use by
|
||||
-- the Azure Blob Storage startup backfill after the row has been
|
||||
-- selected via fds__getInvoiceFiles_ForBlobArchive.
|
||||
-- =============================================
|
||||
CREATE PROCEDURE [dbo].[fds__getInvoiceFileContent]
|
||||
@Id varchar(10)
|
||||
AS
|
||||
BEGIN
|
||||
SET NOCOUNT ON;
|
||||
|
||||
SELECT TOP(1) [Id], [file]
|
||||
FROM [dbo].[fds__invoices]
|
||||
WHERE [Id] = @Id AND @Id is not null AND [file] IS NOT NULL;
|
||||
END
|
||||
Reference in New Issue
Block a user