No real changes, just renames
This commit is contained in:
		
							parent
							
								
									4704b2a0e4
								
							
						
					
					
						commit
						2e8292a65f
					
				
					 10 changed files with 31 additions and 35 deletions
				
			
		|  | @ -48,7 +48,7 @@ import routes from "./routes"; | |||
| import { formatBytes, formatShortDate, formatShortDateTime, openUrl } from "../app/utils"; | ||||
| import accountApi, { LimitBasis, Role, SubscriptionInterval, SubscriptionStatus } from "../app/AccountApi"; | ||||
| import { Pref, PrefGroup } from "./Pref"; | ||||
| import getDb from "../app/getDb"; | ||||
| import db from "../app/db"; | ||||
| import UpgradeDialog from "./UpgradeDialog"; | ||||
| import { AccountContext } from "./App"; | ||||
| import DialogFooter from "./DialogFooter"; | ||||
|  | @ -1078,7 +1078,7 @@ const DeleteAccountDialog = (props) => { | |||
|   const handleSubmit = async () => { | ||||
|     try { | ||||
|       await accountApi.delete(password); | ||||
|       await getDb().delete(); | ||||
|       await db().delete(); | ||||
|       console.debug(`[Account] Account deleted`); | ||||
|       session.resetAndRedirect(routes.app); | ||||
|     } catch (e) { | ||||
|  |  | |||
|  | @ -13,7 +13,7 @@ import session from "../app/Session"; | |||
| import logo from "../img/ntfy.svg"; | ||||
| import subscriptionManager from "../app/SubscriptionManager"; | ||||
| import routes from "./routes"; | ||||
| import getDb from "../app/getDb"; | ||||
| import db from "../app/db"; | ||||
| import { topicDisplayName } from "../app/utils"; | ||||
| import Navigation from "./Navigation"; | ||||
| import accountApi from "../app/AccountApi"; | ||||
|  | @ -121,7 +121,7 @@ const ProfileIcon = () => { | |||
|   const handleLogout = async () => { | ||||
|     try { | ||||
|       await accountApi.logout(); | ||||
|       await getDb().delete(); | ||||
|       await db().delete(); | ||||
|     } finally { | ||||
|       session.resetAndRedirect(routes.app); | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue