storage: fix app ref

This commit is contained in:
Luna 2019-03-23 01:21:45 -03:00
parent 973df47503
commit a3e58abc2c
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ class Storage:
async def vanity_invite(self, guild_id: int) -> Optional[str]: async def vanity_invite(self, guild_id: int) -> Optional[str]:
"""Get the vanity invite for a guild.""" """Get the vanity invite for a guild."""
return await app.db.fetchval(""" return await self.db.fetchval("""
SELECT code FROM vanity_invites SELECT code FROM vanity_invites
WHERE guild_id = $1 WHERE guild_id = $1
""", guild_id) """, guild_id)