From a3e58abc2cf3448d95ff8c276def0f4d1be92009 Mon Sep 17 00:00:00 2001 From: Luna Date: Sat, 23 Mar 2019 01:21:45 -0300 Subject: [PATCH] storage: fix app ref --- litecord/storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litecord/storage.py b/litecord/storage.py index 7442e31..809b919 100644 --- a/litecord/storage.py +++ b/litecord/storage.py @@ -155,7 +155,7 @@ class Storage: async def vanity_invite(self, guild_id: int) -> Optional[str]: """Get the vanity invite for a guild.""" - return await app.db.fetchval(""" + return await self.db.fetchval(""" SELECT code FROM vanity_invites WHERE guild_id = $1 """, guild_id)