feat: find next available slot

This commit is contained in:
Nevo David 2025-09-24 14:25:55 +07:00
parent cde0550adc
commit ad7f7d9408
1 changed files with 14 additions and 4 deletions

View File

@ -56,6 +56,14 @@ export class PublicIntegrationsController {
);
}
@Get('/find-slot/:id')
async findSlotIntegration(
@GetOrgFromRequest() org: Organization,
@Param('id') id?: string
) {
return { date: await this._postsService.findFreeDateTime(org.id, id) };
}
@Get('/posts')
async getPosts(
@GetOrgFromRequest() org: Organization,
@ -128,9 +136,11 @@ export class PublicIntegrationsController {
}
@Post('/video/function')
videoFunction(
@Body() body: VideoFunctionDto
) {
return this._mediaService.videoFunction(body.identifier, body.functionName, body.params);
videoFunction(@Body() body: VideoFunctionDto) {
return this._mediaService.videoFunction(
body.identifier,
body.functionName,
body.params
);
}
}