mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	label service refactoring + rename of doInTransaction to transactional
This commit is contained in:
		@@ -70,7 +70,7 @@ function route(method, path, middleware, routeHandler, resultHandler) {
 | 
			
		||||
                cls.namespace.set('sourceId', req.headers.source_id);
 | 
			
		||||
                protectedSessionService.setProtectedSessionId(req);
 | 
			
		||||
 | 
			
		||||
                return await sql.doInTransaction(async () => {
 | 
			
		||||
                return await sql.transactional(async () => {
 | 
			
		||||
                    return await routeHandler(req, res, next);
 | 
			
		||||
                });
 | 
			
		||||
            });
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user