fix linting errors
This commit is contained in:
parent
f05abfcb9a
commit
e70b9d618e
1 changed files with 2 additions and 2 deletions
|
@ -222,12 +222,12 @@ export function projectForUserExists(username, projectId, callback) {
|
|||
callback(false);
|
||||
return;
|
||||
}
|
||||
Project.findOne({_id: projectId, user: user._id}, (innerErr, project) => {
|
||||
Project.findOne({ _id: projectId, user: user._id }, (innerErr, project) => {
|
||||
if (project) {
|
||||
callback(true);
|
||||
return;
|
||||
}
|
||||
Project.findOne({slug: projectId, user: user._id}, (slugError, projectBySlug) => {
|
||||
Project.findOne({ slug: projectId, user: user._id }, (slugError, projectBySlug) => {
|
||||
if (projectBySlug) {
|
||||
callback(true);
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue