We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ea37c9 commit 408557dCopy full SHA for 408557d
1 file changed
services/apps/git_integration/src/crowdgit/database/crud.py
@@ -196,14 +196,14 @@ async def upsert_maintainer(
196
):
197
sql_query = """
198
INSERT INTO "maintainersInternal"
199
- ("role", "originalRole", "repoUrl", "repoId", "identityId", "startDate")
200
- VALUES ($1, $2, $3, $4, $5, $6)
201
- ON CONFLICT ("repoId", "identityId") DO UPDATE
+ ("role", "originalRole", "repoUrl", "repoId", "identityId", "startDate", "endDate")
+ VALUES ($1, $2, $3, $4, $5, $6, $7)
+ ON CONFLICT ("repoId", "identityId", "startDate", "endDate") DO UPDATE
202
SET role = EXCLUDED.role, "originalRole" = EXCLUDED."originalRole", "updatedAt" = NOW()
203
"""
204
await execute(
205
sql_query,
206
- (role, original_role, repo_url, repo_id, identity_id, start_date),
+ (role, original_role, repo_url, repo_id, identity_id, start_date, None),
207
)
208
209
0 commit comments