mirror of
https://github.com/filecoin-project/slate.git
synced 2024-09-11 22:07:08 +03:00
removed unnecessary console.logs
This commit is contained in:
parent
df9d426c18
commit
d637d683cf
@ -424,7 +424,6 @@ export default class ApplicationPage extends React.Component {
|
||||
};
|
||||
|
||||
render() {
|
||||
// console.log(this.state.viewer);
|
||||
let page = this.state.page;
|
||||
if (!page?.id) {
|
||||
page = NavigationData.getById(null, this.state.viewer);
|
||||
|
@ -3,12 +3,10 @@ import * as Serializers from "~/node_common/serializers";
|
||||
import { runQuery } from "~/node_common/data/utilities";
|
||||
|
||||
export default async (user) => {
|
||||
console.log("inside update user by id");
|
||||
return await runQuery({
|
||||
label: "UPDATE_USER_BY_ID",
|
||||
queryFn: async (DB) => {
|
||||
const query = await DB.from("users").where("id", user.id).update(user).returning("*");
|
||||
console.log({ query });
|
||||
|
||||
const index = query ? query.pop() : null;
|
||||
return JSON.parse(JSON.stringify(index));
|
||||
|
@ -227,17 +227,6 @@ export const createBucket = async ({
|
||||
let ipfs = created.root.path;
|
||||
const textileBucketCID = Strings.ipfsToCid(ipfs);
|
||||
|
||||
console.log({
|
||||
textileKey,
|
||||
textileToken,
|
||||
textileThreadID,
|
||||
textileBucketCID,
|
||||
buckets,
|
||||
bucketKey: created.root.key,
|
||||
bucketRoot: created.root,
|
||||
bucketName,
|
||||
});
|
||||
|
||||
return {
|
||||
textileKey,
|
||||
textileToken,
|
||||
@ -295,13 +284,6 @@ export const getBucket = async ({ user, bucketName = Constants.textile.mainBucke
|
||||
Data.updateUserById({ id: user.id, textileToken, textileThreadID, textileBucketCID });
|
||||
}
|
||||
|
||||
console.log({
|
||||
buckets,
|
||||
bucketKey: existing.key,
|
||||
bucketRoot: existing,
|
||||
bucketName,
|
||||
});
|
||||
|
||||
return {
|
||||
buckets,
|
||||
bucketKey: existing.key,
|
||||
|
@ -20,11 +20,9 @@ export default async (req, res) => {
|
||||
//NOTE(migration): may be able to just condense these two parts since they return it from delete anyways
|
||||
// NOTE(jim): delete all of their public and private slates.
|
||||
slates = await Data.deleteSlatesByUserId({ ownerId: id });
|
||||
console.log({ slates });
|
||||
|
||||
// NOTE(martina): delete all of their public and private files.
|
||||
files = await Data.deleteFilesByUserId({ ownerId: id });
|
||||
console.log({ files });
|
||||
|
||||
const defaultData = await Utilities.getBucket({ user });
|
||||
|
||||
|
@ -51,7 +51,6 @@ export default function SceneActivity({ page, viewer, external, onAction, ...pro
|
||||
});
|
||||
const handleFileClick = (fileIdx, groupFiles) =>
|
||||
setGlobalCarouselState({ currentCarousel: fileIdx, currentObjects: groupFiles });
|
||||
console.log(globalCarouselState.currentCarousel, globalCarouselState.currentObjects.length);
|
||||
|
||||
useIntersection({
|
||||
ref: divRef,
|
||||
|
Loading…
Reference in New Issue
Block a user