Compare commits
2 Commits
ce46bd49fe
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| c9b6ce8f60 | |||
| 0363dc2bcd |
@@ -41,7 +41,7 @@ CREATE UNIQUE INDEX profiles_twitch_userid ON profiles_twitch (userid);
|
||||
|
||||
CREATE TABLE communities(
|
||||
communityid INTEGER PRIMARY KEY GENERATED ALWAYS AS IDENTITY,
|
||||
migrated INTEGER REFERENCES user_profiles (profileid) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||
migrated INTEGER REFERENCES communities (communityid) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
||||
last_seen TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
||||
_timestamp TIMESTAMPTZ NOT NULL DEFAULT NOW()
|
||||
|
||||
@@ -51,6 +51,8 @@ class ProfilesComponent(cmds.Component):
|
||||
args['avatar'] = user.profile_image.url
|
||||
except twitchio.HTTPException:
|
||||
pass
|
||||
except IndexError:
|
||||
pass
|
||||
profile = await UserProfile.create(**args)
|
||||
await TwitchProfileLink.create(profileid=profile.profileid, userid=userid)
|
||||
elif touch:
|
||||
|
||||
Reference in New Issue
Block a user