1b891c6b2c 
							
						 
					 
					
						
						
							
							fix(api): fix cache location in view counter endpoint  
						
						
						
						
					 
					
						2024-11-11 18:45:49 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							a96f924f1e 
							
						 
					 
					
						
						
							
							fix(api): update view counting endpoint  
						
						... 
						
						
						
						ensure that an `undefined` ip doesn't get added to the cache store 
						
						
					 
					
						2024-11-11 18:42:29 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							b782522f33 
							
						 
					 
					
						
						
							
							fix(api): fix replaceOrUpdateContent call not matching the required signature  
						
						
						
						
					 
					
						2024-11-11 17:21:17 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							05d11e0ea5 
							
						 
					 
					
						
						
							
							refactor(api): change stuff in story updating route  
						
						... 
						
						
						
						if the story doesn't exist/is null, throw
ensure chapter word count is updated (since we weren't already doing that for some reason....)
instead of clearing the original story's chapters and re-adding them one by one, update the existing ones in place, otherwise push to the array
use new signature for `replaceOrUploadContent` call
ensure chapters are sorted 
						
						
					 
					
						2024-07-09 21:10:03 -04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							7b8a089d95 
							
						 
					 
					
						
						
							
							fix(api): fix story chapter ids disappearing after an edit  
						
						
						
						
					 
					
						2024-03-16 20:03:18 -04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							f1a5cfffd4 
							
						 
					 
					
						
						
							
							fix(api): fall back to grabbing the current element's _id in replaceOrUploadContent call  
						
						
						
						
					 
					
						2024-03-16 15:43:26 -04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							07ed91b2a1 
							
						 
					 
					
						
						
							
							fix(api): move replaceOrUploadContent call out of else block  
						
						
						
						
					 
					
						2024-03-16 15:32:58 -04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							417fda7617 
							
						 
					 
					
						
						
							
							feat(api): add a route to update story views  
						
						... 
						
						
						
						don't worry, there are duplicate/spam checks in place 
						
						
					 
					
						2024-01-04 20:49:51 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							74722ddfd6 
							
						 
					 
					
						
						
							
							fix(api): update story editing route  
						
						... 
						
						
						
						properly await `replaceOrUpdateContent` 
						
						
					 
					
						2024-01-04 15:20:25 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							8f45dbe563 
							
						 
					 
					
						
						
							
							style(*): edit indents  
						
						
						
						
					 
					
						2023-12-29 20:53:29 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							c8e84c909e 
							
						 
					 
					
						
						
							
							style(*): cleanup unused imports  
						
						
						
						
					 
					
						2023-12-29 20:11:07 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							1447960b1a 
							
						 
					 
					
						
						
							
							refactor(db/models): update populatedDoc types  
						
						... 
						
						
						
						- remove `& Document` qualifier
- cast `T | number` to T with the `as` keyword 
						
						
					 
					
						2023-12-29 19:06:55 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							922807ba6a 
							
						 
					 
					
						
						
							
							refactor(server/utils): make paths and imports more concise and correct  
						
						
						
						
					 
					
						2023-12-29 16:34:00 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							18f11f7ca7 
							
						 
					 
					
						
						
							
							refactor(api): check if coAuthor form field is an empty string  
						
						... 
						
						
						
						if it is, set coAuthor in document to null, otherwise, set it to the provided value 
						
						
					 
					
						2023-12-28 19:58:54 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							3e5af47107 
							
						 
					 
					
						
						
							
							refactor(*): refactor tsconfig paths  
						
						... 
						
						
						
						looks/feels nicer 
						
						
					 
					
						2023-12-20 17:23:31 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							088232f750 
							
						 
					 
					
						
						
							
							refactor(api & server/utils): refactor imports of db helpers  
						
						... 
						
						
						
						create an index file which exports the functions we need in one accessible place 
						
						
					 
					
						2023-12-11 21:29:46 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							3bc828ad5e 
							
						 
					 
					
						
						
							
							fix(api): allow admins to access a hidden story's full contents  
						
						
						
						
					 
					
						2023-12-09 16:58:35 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							37e9bcc17c 
							
						 
					 
					
						
						
							
							fix(api): fix error not throwing on an illegal access of a full hidden story  
						
						
						
						
					 
					
						2023-12-09 16:56:57 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							22816477eb 
							
						 
					 
					
						
						
							
							refactor(server/utils): add chapter index parameter to storyCheck function  
						
						
						
						
					 
					
						2023-12-06 22:11:41 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							61c57e4161 
							
						 
					 
					
						
						
							
							refactor(api): pass chapter index to chapterTransformer in individual chaper get route  
						
						
						
						
					 
					
						2023-12-01 17:54:30 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							f1190af5df 
							
						 
					 
					
						
						
							
							refactor(api): add api route to retrieve full story information  
						
						... 
						
						
						
						with text 
						
						
					 
					
						2023-10-11 16:39:11 -04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							01d3b7f22b 
							
						 
					 
					
						
						
							
							feat(api): integrate co-author feature in api routes and helpers  
						
						
						
						
					 
					
						2023-10-11 15:31:02 -04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							b000c6734a 
							
						 
					 
					
						
						
							
							refactor(api): rename imports and refactor error messages  
						
						
						
						
					 
					
						2023-10-03 01:24:06 -04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							f0346ebdbd 
							
						 
					 
					
						
						
							
							feat(api): add an endpoint to retrieve the users who have favourited a specific story  
						
						
						
						
					 
					
						2023-10-03 01:18:12 -04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							6b5b01fdd6 
							
						 
					 
					
						
						
							
							refactor(api): change error messages to imported constant values  
						
						
						
						
					 
					
						2023-10-03 01:17:21 -04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							356cb5ea6b 
							
						 
					 
					
						
						
							
							feat(api): create review endpoints  
						
						... 
						
						
						
						create endpoints for adding+getting a single chapter's reviews 
						
						
					 
					
						2023-10-02 21:43:24 -04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							d056dac72b 
							
						 
					 
					
						
						
							
							refactor(api): update function calls  
						
						
						
						
					 
					
						2023-10-02 15:46:56 -04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							ff4b94d913 
							
						 
					 
					
						
						
							
							feat(api):  ✏️  add story api endpoints  
						
						... 
						
						
						
						(update/create/delete) 
						
						
					 
					
						2023-10-02 15:44:55 -04:00