Skip to content

Commit

Permalink
don't use mu-auth sudo queries
Browse files Browse the repository at this point in the history
  • Loading branch information
elpoelma committed Dec 10, 2024
1 parent af777b1 commit 5a39aa0
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
3 changes: 1 addition & 2 deletions models/document-container.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import EditorDocument from "./editor-document";
import { sparqlEscapeUri, sparqlEscapeString } from "mu";
import { querySudo as query } from "@lblod/mu-auth-sudo";
import { sparqlEscapeUri, sparqlEscapeString, query } from "mu";

export default class DocumentContainer {
/** @type {string} */
Expand Down
3 changes: 2 additions & 1 deletion models/task.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import {
sparqlEscapeDateTime,
// @ts-ignore
sparqlEscapeInt,
query,
update,
} from "mu";
import { querySudo as query, updateSudo as update } from "@lblod/mu-auth-sudo";

export const JOB_STATUSES = {
scheduled: "http://redpencil.data.gift/id/concept/JobStatus/scheduled",
Expand Down
3 changes: 2 additions & 1 deletion models/template-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ import {
uuid as uuidv4,
sparqlEscapeDateTime,
sparqlEscapeString,
query,
update,
} from "mu";
import { querySudo as query, updateSudo as update } from "@lblod/mu-auth-sudo";
import fs from "fs";

export default class TemplateVersion {
Expand Down
9 changes: 7 additions & 2 deletions models/template.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { sparqlEscapeUri, uuid as uuidv4, sparqlEscapeString } from "mu";
import { querySudo as query, updateSudo as update } from "@lblod/mu-auth-sudo";
import {
sparqlEscapeUri,
uuid as uuidv4,
sparqlEscapeString,
query,
update,
} from "mu";
import TemplateVersion from "./template-version";

/**
Expand Down
3 changes: 1 addition & 2 deletions util/common-sparql.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { sparqlEscapeUri, sparqlEscapeString } from "mu";
import { querySudo as query, updateSudo as update } from "@lblod/mu-auth-sudo";
import { sparqlEscapeUri, sparqlEscapeString, query, update } from "mu";

export const getPublishedVersion = async (documentContainerUri) => {
const publishedVersionQuery = `
Expand Down

0 comments on commit 5a39aa0

Please sign in to comment.