Skip to content

Commit 25f77b0

Browse files
committed
fix: ssoCallback return format (#3994)
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
1 parent 45dd28a commit 25f77b0

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

  • services/libs/data-access-layer/src/collections

services/libs/data-access-layer/src/collections/index.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,21 @@ export async function createCollection(
138138
qx: QueryExecutor,
139139
collection: ICreateCollection,
140140
): Promise<ICollection> {
141+
const data = {
142+
description: null,
143+
slug: null,
144+
logoUrl: null,
145+
imageUrl: null,
146+
color: null,
147+
...collection,
148+
}
141149
return qx.selectOne(
142150
`
143151
INSERT INTO collections (name, description, slug, "categoryId", starred, "logoUrl", "imageUrl", color)
144152
VALUES ($(name), $(description), $(slug), $(categoryId), $(starred), $(logoUrl), $(imageUrl), $(color))
145153
RETURNING *
146154
`,
147-
collection,
155+
data,
148156
)
149157
}
150158

0 commit comments

Comments
 (0)