mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-26 08:12:34 -04:00 
			
		
		
		
	* expose DOCUMENT_TYPE to post consume scripts * Apply suggestions from code review Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com> --------- Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
		
			
				
	
	
		
			25 lines
		
	
	
		
			677 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			677 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env bash
 | |
| 
 | |
| echo "
 | |
| 
 | |
| A document with an id of ${DOCUMENT_ID} was just consumed.  I know the
 | |
| following additional information about it:
 | |
| 
 | |
| * Generated File Name: ${DOCUMENT_FILE_NAME}
 | |
| * Document type: ${DOCUMENT_TYPE}
 | |
| * Archive Path: ${DOCUMENT_ARCHIVE_PATH}
 | |
| * Source Path: ${DOCUMENT_SOURCE_PATH}
 | |
| * Created: ${DOCUMENT_CREATED}
 | |
| * Added: ${DOCUMENT_ADDED}
 | |
| * Modified: ${DOCUMENT_MODIFIED}
 | |
| * Thumbnail Path: ${DOCUMENT_THUMBNAIL_PATH}
 | |
| * Download URL: ${DOCUMENT_DOWNLOAD_URL}
 | |
| * Thumbnail URL: ${DOCUMENT_THUMBNAIL_URL}
 | |
| * Owner Name: ${DOCUMENT_OWNER}
 | |
| * Correspondent: ${DOCUMENT_CORRESPONDENT}
 | |
| * Tags: ${DOCUMENT_TAGS}
 | |
| 
 | |
| It was consumed with the passphrase ${PASSPHRASE}
 | |
| 
 | |
| "
 |