Updated links logic, new admin dash

This commit is contained in:
alex 3
2023-11-07 01:13:54 -05:00
parent 48fb8f644f
commit 56af375cc0
15 changed files with 300 additions and 209 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ export const linksRouter = createTRPCRouter({
.input(
z.string().min(1)
)
.query(async ({ctx, input}) => {
.mutation(async ({ctx, input}) => {
return ctx.db.socialLink.delete({
where: {
id: input
+1 -1
View File
@@ -32,7 +32,7 @@ export const postRouter = createTRPCRouter({
.input(
z.string().min(1)
)
.query(async ({ctx, input}) => {
.mutation(async ({ctx, input}) => {
return ctx.db.post.delete({
where: {
id: input