This commit is contained in:
parent
a223fc709e
commit
952d9541b9
@ -14,7 +14,7 @@ export async function savePostServer(
|
|||||||
is_draft: boolean,
|
is_draft: boolean,
|
||||||
existingSlug?: string
|
existingSlug?: string
|
||||||
) {
|
) {
|
||||||
if ((await auth())?.user != null) {
|
if ((await auth())?.user == null) {
|
||||||
throw new Error("Not authenticated");
|
throw new Error("Not authenticated");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user