This commit is contained in:
rijkvanzanten
2023-04-14 17:30:56 -04:00
parent bdb1a919e2
commit 37658802b7
119 changed files with 224 additions and 0 deletions

View File

@@ -72,6 +72,7 @@ export function validateSnapshot(snapshot: Snapshot, force = false) {
}
const currentVendor = getDatabaseClient();
if (snapshot.vendor !== currentVendor) {
throw new InvalidPayloadException(
`Provided snapshot's vendor ${snapshot.vendor} does not match the current instance's vendor ${currentVendor}. You can bypass this check by passing the "force" query parameter.`