add owner data

This commit is contained in:
Tykayn 2022-02-09 10:31:06 +01:00 committed by tykayn
parent 206b7ea9bd
commit bd825ec20e

View File

@ -717,6 +717,8 @@ export class PollService implements Resolve<Poll> {
let form = this.form; let form = this.form;
const newOwner = this.storageService.vote_stack.owner; const newOwner = this.storageService.vote_stack.owner;
newOwner.pseudo = form.value.creatorPseudo;
newOwner.email = form.value.creatorEmail;
const newpoll = new Poll(newOwner, form.value.custom_url, form.value.title); const newpoll = new Poll(newOwner, form.value.custom_url, form.value.title);
const pollKeys = Object.keys(newpoll); const pollKeys = Object.keys(newpoll);