Skip to content

Commit

Permalink
legacymigrate: fix split_part
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Oct 10, 2024
1 parent f758401 commit 4311226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/mautrix-whatsapp/legacymigrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var legacyMigrateCopyData string
func init() {
litestream.Functions["split_part"] = func(input, delimiter string, partNum int) string {
// split_part is 1-indexed
partNum++
partNum--
parts := strings.Split(input, delimiter)
if len(parts) <= partNum {
return ""
Expand Down

0 comments on commit 4311226

Please sign in to comment.