mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
One more
This commit is contained in:
@@ -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.`
|
||||
|
||||
Reference in New Issue
Block a user