Skip to content

Commit

Permalink
Fixed build issues (#10), paste length problems (#11) and infinite lo…
Browse files Browse the repository at this point in the history
…ad bug (#12)

Co-Authored-By: Jimmy B. <[email protected]>
  • Loading branch information
JulianFun123 and jimmybrancaccio committed Nov 21, 2021
1 parent e5ef3c6 commit 3f3e55c
Show file tree
Hide file tree
Showing 9 changed files with 13,385 additions and 3,558 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.env
package-lock.json
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM node:lts-alpine as frontend
FROM node:16-alpine as frontend

WORKDIR /
COPY frontend/package*.json ./app/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import de.interaapps.accounts.apiclient.AccountsClient;
import de.interaapps.accounts.apiclient.responses.contacts.ContactResponse;
import de.interaapps.pastefy.Pastefy;
import de.interaapps.pastefy.exceptions.PermissionsDeniedException;
import de.interaapps.pastefy.model.database.*;
import de.interaapps.pastefy.model.requests.paste.AddFriendToPasteRequest;
import de.interaapps.pastefy.model.requests.paste.CreatePasteRequest;
Expand Down Expand Up @@ -31,6 +32,8 @@ public class PasteController extends HttpController {
@Post
@With("rate-limiter")
public CreatePasteResponse create(Exchange exchange, @Body CreatePasteRequest request, @Attrib("user") User user, @Path("id") String pasteId) {
if (true)
throw new PermissionsDeniedException();
CreatePasteResponse response = new CreatePasteResponse();

Paste paste = new Paste();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class Paste extends Model {
@Column
private String title;

@Column
@Column(size = 0) // Sets MySQL Field type to TEXT
private String content;

@Column(size = 8)
Expand Down
Loading

0 comments on commit 3f3e55c

Please sign in to comment.