From 9a16cfb558c453cd319d265c7f3b2262b464f6aa Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sun, 8 Aug 2021 00:29:02 +0200 Subject: :bug: fix relationships --- src/util/instanceOf.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/util/instanceOf.ts') diff --git a/src/util/instanceOf.ts b/src/util/instanceOf.ts index 93a92805..4d9034e5 100644 --- a/src/util/instanceOf.ts +++ b/src/util/instanceOf.ts @@ -84,6 +84,8 @@ export function instanceOf( switch (type) { case String: + value = `${value}`; + ref.obj[ref.key] = value; if (typeof value === "string") return true; throw new FieldError("BASE_TYPE_STRING", req.t("common:field.BASE_TYPE_STRING")); case Number: -- cgit 1.5.1