mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-15 14:29:07 +00:00
FEAT: create RLS on pi-factory
This commit is contained in:
@@ -633,4 +633,20 @@ export class CatalogController {
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
@Post('rls-rule')
|
||||
@ApiOkResponse({ type: GetDatasetCatalogTaskRes })
|
||||
async addRlsRule(@User() user: RequestUser, @Body() body) {
|
||||
const { customer_id, customer_name, user_id, username } = user;
|
||||
const metadata = PackTheMetadata({
|
||||
customer_id,
|
||||
customer_name,
|
||||
user_id,
|
||||
username,
|
||||
});
|
||||
console.log(body);
|
||||
const response = await this.catalogService.addRlsRule(body, metadata);
|
||||
|
||||
return response;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user