backend: use upsert to update meta table #239

Closed
norm wants to merge 1 commit from upsert-meta into main
Owner

This fixes an issue where the meta table fails to update due to a
duplicate ID.

Changelog: Fixed

This fixes an issue where the meta table fails to update due to a duplicate ID. Changelog: Fixed
norm added 1 commit 2022-11-17 23:57:01 +00:00
backend: use upsert to update meta table
Some checks failed
ci/woodpecker/push/lint-client Pipeline was successful
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/pr/lint-foundkey-js Pipeline was successful
ci/woodpecker/pr/lint-backend Pipeline failed
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/lint-client Pipeline failed
ci/woodpecker/pr/test Pipeline failed
bdc0b74499
This fixes an issue where the meta table fails to update due to a
duplicate ID.
Owner

Using upsert here is not the correct solution, since clear is suppsed to truncate the table to ensure there is only ever 1 record. The solution was instead to await the truncation. Fixed in commit 28aa440bcc.

Using `upsert` here is not the correct solution, since `clear` is suppsed to truncate the table to ensure there is only ever 1 record. The solution was instead to `await` the truncation. Fixed in commit 28aa440bcc967224964cadf141924f8960409c9a.
Johann150 closed this pull request 2022-11-18 19:53:57 +00:00
norm deleted branch upsert-meta 2022-11-18 20:21:31 +00:00
Some checks failed
ci/woodpecker/push/lint-client Pipeline was successful
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/pr/lint-foundkey-js Pipeline was successful
ci/woodpecker/pr/lint-backend Pipeline failed
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/lint-client Pipeline failed
ci/woodpecker/pr/test Pipeline failed

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
feature
fix
upkeep
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: FoundKeyGang/FoundKey#239
No description provided.