fix: has one bug (#478)

This commit is contained in:
金昶 2022-06-06 22:59:35 +08:00 committed by GitHub
parent 000e4e50b8
commit fe02557003
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -297,7 +297,7 @@ export async function updateSingleAssociation(
// @ts-ignore // @ts-ignore
dataKey = association.targetKey; dataKey = association.targetKey;
} else { } else {
M = association.source as ModelCtor<Model>; M = association.target as ModelCtor<Model>;
dataKey = M.primaryKeyAttribute; dataKey = M.primaryKeyAttribute;
} }