Fixed stats resetting due to breaking change

This commit is contained in:
DJj123dj
2025-02-12 16:27:34 +01:00
parent f13777e5f3
commit 9702c4d97d
+1 -1
View File
@@ -14,7 +14,7 @@ import * as fjs from "formatted-json-stringify"
/** ## ❌ Temporary function. Will be removed on full OTv4 release! */ /** ## ❌ Temporary function. Will be removed on full OTv4 release! */
export function TEMP_migrateDatabaseIdPrefix(id:string): string { export function TEMP_migrateDatabaseIdPrefix(id:string): string {
if (!id.startsWith("openticket:")) return id if (!id.startsWith("openticket:")) return id
return id.replace("openticket:","opendiscord:") return id.replaceAll("openticket:","opendiscord:")
} }
/** ## ❌ Temporary function. Will be removed on full OTv4 release! */ /** ## ❌ Temporary function. Will be removed on full OTv4 release! */
export function TEMP_migrateDatabaseValuePrefix(value:string): string { export function TEMP_migrateDatabaseValuePrefix(value:string): string {