add embeddings, remove userId from business & commercialProperty replaced by email
This commit is contained in:
@@ -85,7 +85,7 @@ export class EditBusinessListingComponent {
|
||||
} else {
|
||||
this.listing = createDefaultBusinessListing();
|
||||
const listingUser = await this.userService.getByMail(keycloakUser.email);
|
||||
this.listing.userId = listingUser.id;
|
||||
this.listing.email = listingUser.email;
|
||||
this.listing.imageName = emailToDirName(keycloakUser.email);
|
||||
if (this.data) {
|
||||
this.listing.title = this.data?.title;
|
||||
|
||||
@@ -36,7 +36,6 @@ import { TOOLBAR_OPTIONS } from '../../utils/defaults';
|
||||
styleUrl: './edit-commercial-property-listing.component.scss',
|
||||
})
|
||||
export class EditCommercialPropertyListingComponent {
|
||||
// @ViewChild(FileUpload) public fileUpload: FileUpload;
|
||||
@ViewChild('fileInput') fileInput!: ElementRef<HTMLInputElement>;
|
||||
|
||||
listingsCategory = 'commercialProperty';
|
||||
@@ -125,7 +124,7 @@ export class EditCommercialPropertyListingComponent {
|
||||
} else {
|
||||
this.listing = createDefaultCommercialPropertyListing();
|
||||
const listingUser = await this.userService.getByMail(keycloakUser.email);
|
||||
this.listing.userId = listingUser.id;
|
||||
this.listing.email = listingUser.email;
|
||||
this.listing.imagePath = `${emailToDirName(keycloakUser.email)}`;
|
||||
if (this.data) {
|
||||
this.listing.title = this.data?.title;
|
||||
|
||||
@@ -22,7 +22,7 @@ export class EmailUsComponent {
|
||||
user: User;
|
||||
errorResponse: ErrorResponse;
|
||||
constructor(private mailService: MailService, private userService: UserService, public keycloakService: KeycloakService) {
|
||||
this.mailinfo = { sender: {}, userId: '', email: '', url: environment.mailinfoUrl };
|
||||
this.mailinfo = { sender: {}, email: '', url: environment.mailinfoUrl };
|
||||
}
|
||||
async ngOnInit() {
|
||||
const token = await this.keycloakService.getToken();
|
||||
|
||||
Reference in New Issue
Block a user