generated from hackforla/.github-hackforla-base-repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement shared snapshot view link #1703
- Loading branch information
Showing
9 changed files
with
136 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
server/db/migration/V20241112.1450__add_project_select_by_id_with_shared_email.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
CREATE proc [dbo].[Project_SelectByIdWithSharedEmail] | ||
@email NVARCHAR(100), | ||
@id INT | ||
AS | ||
BEGIN | ||
SELECT | ||
p.id, | ||
p.name, | ||
p.address, | ||
p.formInputs, | ||
p.loginId, | ||
p.calculationId, | ||
p.dateCreated, | ||
p.dateModified, | ||
p.description, | ||
p.droId, | ||
p.adminNotes, | ||
p.dateModifiedAdmin, | ||
p.dateHidden, | ||
p.dateTrashed, | ||
p.dateSnapshotted, | ||
p.dateSubmitted | ||
FROM Project p | ||
RIGHT JOIN ProjectShare ps ON ps.projectId = p.id | ||
WHERE ps.email = @email AND ps.projectid = @id; | ||
END | ||
GO |