We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b1e3ff commit ffe1c78Copy full SHA for ffe1c78
src/model/model/model.ts
@@ -51,7 +51,7 @@ export abstract class Model<TModelAttributes extends {} = any, TCreationAttribut
51
* Sets relation between specified instances and source instance
52
* (replaces old relations)
53
*/
54
- $set<R extends Model>(propertyKey: keyof this, instances: R | R[] | string[] | string | number[] | number, options?: AssociationActionOptions): Promise<unknown> {
+ $set<R extends Model>(propertyKey: keyof this, instances: R | R[] | string[] | string | number[] | number | null, options?: AssociationActionOptions): Promise<unknown> {
55
return this['set' + capitalize(propertyKey as string)](instances, options);
56
}
57
0 commit comments