mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	fix(server): migration not working due to change in becca loader
This commit is contained in:
		
							parent
							
								
									f9d8bf26c4
								
							
						
					
					
						commit
						4475568d19
					
				| @ -65,9 +65,17 @@ function load() { | ||||
|             new BEtapiToken(row); | ||||
|         } | ||||
| 
 | ||||
|         try { | ||||
|             for (const row of sql.getRows<NoteEmbeddingRow>(/*sql*/`SELECT embedId, noteId, providerId, modelId, dimension, embedding, version, dateCreated, dateModified, utcDateCreated, utcDateModified FROM note_embeddings`)) { | ||||
|                 new BNoteEmbedding(row).init(); | ||||
|             } | ||||
|         } catch (e: unknown) { | ||||
|             if (e && typeof e === "object" && "message" in e && typeof e.message === "string" && e.message.includes("no such table")) { | ||||
|                 // Can be ignored.
 | ||||
|             } else { | ||||
|                 throw e; | ||||
|             } | ||||
|         } | ||||
|     }); | ||||
| 
 | ||||
|     for (const noteId in becca.notes) { | ||||
|  | ||||
| @ -16,5 +16,5 @@ describe("Migration", () => { | ||||
|                 resolve(); | ||||
|             }); | ||||
|         }); | ||||
|     }); | ||||
|     }, 60_000); | ||||
| }); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran