Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(app): resolve lint error #616

Merged
merged 2 commits into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/api/src/services/campaigns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const baseUrl =

const getApprovedAds = catchAsync(async (req: Request, res: Response) => {
const { type } = req.query;
// prettier-ignore
const query = userSql<Campaign[]>`
WITH
valid_ads AS (
Expand Down Expand Up @@ -106,6 +107,7 @@ const getApprovedAds = catchAsync(async (req: Request, res: Response) => {
});

const getApprovedTextAds = catchAsync(async (_req: Request, res: Response) => {
// prettier-ignore
const query = userSql<Campaign[]>`
WITH
valid_ads AS (
Expand Down
2 changes: 1 addition & 1 deletion apps/app-lite/src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const Footer = () => {
<div className="container mx-auto px-3 pb-16">
<div className="flex justify-between border-t border-border-body">
<div className="font-light text-xs text-text-body pb-1 pt-6 text-center">
Built on BOS by {' '}
Built on BOS by{' '}
<a
className="text-primary"
href="https://nearblocks.io"
Expand Down
3 changes: 2 additions & 1 deletion apps/app-lite/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ const config = {
loaderUrl: 'http://127.0.0.1:8080/api/loader',
mainnetUrl: process.env.NEXT_PUBLIC_MAINNET_URL || 'https://nearblocks.io',
network: process.env.NEXT_PUBLIC_NETWORK_ID || 'mainnet',
testnetUrl: process.env.NEXT_PUBLIC_TESTNET_URL || 'https://testnet.nearblocks.io',
testnetUrl:
process.env.NEXT_PUBLIC_TESTNET_URL || 'https://testnet.nearblocks.io',
};

export default config;
4 changes: 3 additions & 1 deletion apps/app/src/components/Address/Contract/VerifiedData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,9 @@ const VerifiedData: React.FC<VerifiedDataProps> = ({
</div>

<div
ref={(el) => (codeContainerRefs.current[name] = el)}
ref={(el) => {
codeContainerRefs.current[name] = el;
}}
style={{
height: `${codeHeights[name] || 300}px`,
}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
CREATE INDEX IF NOT EXISTS t_ara_actions_args_args_json_receiver_id_idx ON public.action_receipt_actions USING btree (
(
(
(args -> 'args_json'::text) ->> 'receiver_id'::text
(args -> 'args_json'::TEXT) ->> 'receiver_id'::TEXT
)
)
)
WHERE
(
(action_kind = 'FUNCTION_CALL'::action_kind)
AND ((args ->> 'args_json'::text) IS NOT NULL)
AND ((args ->> 'args_json'::TEXT) IS NOT NULL)
);
2 changes: 1 addition & 1 deletion apps/backend/migrations/20240709142432_rlp_hash.up.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ALTER TABLE action_receipt_actions
ADD COLUMN IF NOT EXISTS nep518_rlp_hash text NULL;
ADD COLUMN IF NOT EXISTS nep518_rlp_hash TEXT NULL;

CREATE INDEX IF NOT EXISTS ara_nep518_rlp_hash ON action_receipt_actions (nep518_rlp_hash)
WHERE
Expand Down
Loading