Warn and give hint when using an already used repo for another work
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nemunaire 2022-09-30 12:41:34 +02:00
commit 7cdfafc329
4 changed files with 47 additions and 10 deletions

View file

@ -5,13 +5,14 @@ export class WorkRepository {
}
}
update({ id, id_user, id_work, uri, secret, last_check }) {
update({ id, id_user, id_work, uri, secret, last_check, already_used }) {
this.id = id;
this.id_user = id_user;
this.id_work = id_work;
this.uri = uri;
this.secret = secret;
this.last_check = last_check;
this.already_used = already_used == true;
}
async delete() {