sdy

update searchUser resolver

...@@ -9,18 +9,18 @@ export default { ...@@ -9,18 +9,18 @@ export default {
9 where: { 9 where: {
10 OR: [ 10 OR: [
11 { 11 {
12 - name_contains: term, 12 + name: { contains: term },
13 }, 13 },
14 { 14 {
15 - email_contains: term, 15 + email: { contains: term },
16 }, 16 },
17 ], 17 ],
18 }, 18 },
19 }); 19 });
20 } catch (error) { 20 } catch (error) {
21 console.log(error); 21 console.log(error);
22 + return null;
22 } 23 }
23 - return null;
24 }, 24 },
25 }, 25 },
26 }; 26 };
......