mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-06-05 07:08:12 +02:00
fix: try to handle duplicate user id error
This commit is contained in:
@@ -17,6 +17,7 @@ export default class PullRequest {
|
|||||||
constructor(data: IAnonymizedPullRequestDocument) {
|
constructor(data: IAnonymizedPullRequestDocument) {
|
||||||
this._model = data;
|
this._model = data;
|
||||||
this.owner = new User(new UserModel({ _id: data.owner }));
|
this.owner = new User(new UserModel({ _id: data.owner }));
|
||||||
|
this.owner.model.isNew = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
getToken() {
|
getToken() {
|
||||||
|
|||||||
@@ -71,6 +71,7 @@ export default class Repository {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
this.owner = new User(new UserModel({ _id: data.owner }));
|
this.owner = new User(new UserModel({ _id: data.owner }));
|
||||||
|
this.owner.model.isNew = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user