Skip to content

Commit 62e04ba

Browse files
committed
updateCrud
1 parent 8a9ef8e commit 62e04ba

File tree

13 files changed

+936
-3182
lines changed

13 files changed

+936
-3182
lines changed

package-lock.json

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/integrations/gei-bookings/src/UserMutation/bookService.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,9 @@ export const bookService = async (input: FieldResolveInput) =>
1919
if (!service.value) {
2020
throw new GlobalError(`service is already taken: ${serviceId}`, import.meta.url);
2121
}
22-
console.log(service);
23-
22+
2423
return service.value
2524
}))
26-
console.log(services);
2725

2826
const books = await o('Bookings')
2927
.collection.insertMany(services.map((service) =>(
@@ -39,7 +37,6 @@ export const bookService = async (input: FieldResolveInput) =>
3937
if (!books) {
4038
throw new GlobalError('inserted document is null', import.meta.url);
4139
}
42-
console.log(books);
4340
return { books: await o('Bookings').composeRelated(books, 'service', 'Services', '_id') };
4441
}),
4542
)(input.arguments, input.source);

0 commit comments

Comments
 (0)