Skip to content

Commit 9882bea

Browse files
chore: fixing eslinting
1 parent 4adc133 commit 9882bea

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

api/models/Conversation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ module.exports = {
171171
if (metadata && metadata.unsetFields && Object.keys(metadata.unsetFields).length > 0) {
172172
updateOperation.$unset = metadata.unsetFields;
173173
}
174-
174+
175175
/** Note: the resulting Model object is necessary for Meilisearch operations */
176176
const conversation = await Conversation.findOneAndUpdate(
177177
{ conversationId, user: req.user.id },

api/server/services/SolidStorage.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,7 @@ async function getSolidFetchAndPodUrl(req) {
407407
throw new Error('User not authenticated with Solid/OpenID');
408408
}
409409

410-
const cached =
411-
req.session?.solidCachedPodUrlWebId === openidId && req.session?.solidCachedPodUrl;
410+
const cached = req.session?.solidCachedPodUrlWebId === openidId && req.session?.solidCachedPodUrl;
412411
if (cached) {
413412
const authenticatedFetch = await getSolidFetch(req);
414413
logger.debug('[SolidStorage] Using cached Pod URL from session', { openidId });
@@ -1732,10 +1731,7 @@ async function getConvosByCursorFromSolid(req, options = {}) {
17321731
});
17331732

17341733
// Check if error is a 404 (container doesn't exist) - use status only
1735-
const isNotFound =
1736-
errorStatus === 404 ||
1737-
errorStatus === '404' ||
1738-
error?.response?.status === 404;
1734+
const isNotFound = errorStatus === 404 || errorStatus === '404' || error?.response?.status === 404;
17391735

17401736
if (isNotFound) {
17411737
// Container doesn't exist, return empty result (this is expected for new users)

0 commit comments

Comments
 (0)